fixed cancel dialog

This commit is contained in:
Fedor Katurov 2020-01-14 11:08:26 +07:00
parent 1a00b98ba3
commit 56fd8ec4cd
3 changed files with 10 additions and 3 deletions

View file

@ -56,7 +56,6 @@ const hideLoader = () => {
function* stopEditingSaga() {
const { changed, mode }: ReturnType<typeof selectEditor> = yield select(selectEditor);
const { address_origin }: ReturnType<typeof selectMap> = yield select(selectMap);
const { path } = getUrlData();
if (changed && mode !== MODES.CONFIRM_CANCEL) {
@ -66,8 +65,9 @@ function* stopEditingSaga() {
yield put(editorSetMode(MODES.NONE));
yield put(editorSetChanged(false));
yield put(editorSetReady(true));
yield pushPath(`/${address_origin || path}/`);
yield pushPath(`/${path}/`);
}
function* checkOSRMServiceSaga() {