mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed repeating map requests
This commit is contained in:
parent
9760002fad
commit
65885acb75
1 changed files with 3 additions and 4 deletions
|
@ -118,16 +118,14 @@ export function* loadMapFromPath() {
|
||||||
const map = yield call(loadMapSaga, path);
|
const map = yield call(loadMapSaga, path);
|
||||||
|
|
||||||
if (!map) {
|
if (!map) {
|
||||||
yield call(setReadySaga);
|
yield call(startEmptyEditorSaga);
|
||||||
return yield call(startEmptyEditorSaga);
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
yield put(editorSetEditing(mode && mode === 'edit'));
|
yield put(editorSetEditing(mode && mode === 'edit'));
|
||||||
yield call(setReadySaga);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
yield call(setReadySaga);
|
|
||||||
yield call(startEmptyEditorSaga);
|
yield call(startEmptyEditorSaga);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,6 +151,7 @@ export function* mapInitSaga() {
|
||||||
}
|
}
|
||||||
|
|
||||||
yield call(loadMapFromPath);
|
yield call(loadMapFromPath);
|
||||||
|
yield call(setReadySaga);
|
||||||
pushLoaderState(100);
|
pushLoaderState(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue