From 65885acb75aa77719d2358c5653c9d7badefc34f Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Fri, 10 Jan 2020 12:30:32 +0700 Subject: [PATCH] fixed repeating map requests --- src/redux/map/sagas.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/redux/map/sagas.ts b/src/redux/map/sagas.ts index 570b6ac..37950ee 100644 --- a/src/redux/map/sagas.ts +++ b/src/redux/map/sagas.ts @@ -118,16 +118,14 @@ export function* loadMapFromPath() { const map = yield call(loadMapSaga, path); if (!map) { - yield call(setReadySaga); - return yield call(startEmptyEditorSaga); + yield call(startEmptyEditorSaga); + return } yield put(editorSetEditing(mode && mode === 'edit')); - yield call(setReadySaga); return; } - yield call(setReadySaga); yield call(startEmptyEditorSaga); } @@ -153,6 +151,7 @@ export function* mapInitSaga() { } yield call(loadMapFromPath); + yield call(setReadySaga); pushLoaderState(100); }