fix #293. stay at MAP page. Remove calling of copyPending.......
This commit is contained in:
@@ -55,11 +55,11 @@ export async function saveFilter(addFilterId, next = null) {
|
||||
fileName = '';
|
||||
return true;
|
||||
} else { // 點擊取消或空白處,為存檔失敗。
|
||||
// console.log("PageAdminStore.activePage", PageAdminStore.activePage);
|
||||
pageAdminStore.keepPreviousPage();
|
||||
// console.log("現在 pageAdminStore.activePage", pageAdminStore.activePage);
|
||||
|
||||
// Not every time we have nontrivial next value
|
||||
next !== null ? next() : 1;
|
||||
next !== null ? next(false) : 1;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -117,9 +117,6 @@ export async function leaveFilter(next, addFilterId, toPath, logOut) {
|
||||
await saveFilter(addFilterId, next);
|
||||
}
|
||||
|
||||
// Handle page admin issue
|
||||
pageAdminStore.copyPendingPageToActivePage();
|
||||
|
||||
logOut ? logOut() : next(toPath);
|
||||
} else if(result.dismiss === 'cancel') {
|
||||
// console.log('popup cancel case', );
|
||||
|
||||
Reference in New Issue
Block a user