fix #293. stay at MAP page. Remove calling of copyPending.......

This commit is contained in:
Cindy Chang
2024-06-12 10:43:48 +08:00
parent d117adf54e
commit 235504a3fb
4 changed files with 21 additions and 14 deletions

View File

@@ -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', );