fixed gpx downloading

This commit is contained in:
Fedor Katurov 2020-01-16 10:33:48 +07:00
parent 18cbeed06e
commit 23b8f5dea6
2 changed files with 20 additions and 8 deletions

View file

@ -214,7 +214,7 @@ function* keyPressedSaga({ key, target }: ReturnType<typeof editorKeyPressed>) {
function* getGPXTrackSaga(): SagaIterator {
const { route, stickers, title, address }: ReturnType<typeof selectMap> = yield select(selectMap);
if (!route || route.length <= 0) return;
if (!route.length && !stickers.length) return;
const track = getGPXString({ route, stickers, title: title || address });