Skip to content

Commit

Permalink
feat(backend): clarify reload_and_redirect logic by removing unnecess…
Browse files Browse the repository at this point in the history
…ary isReloading
  • Loading branch information
amaninyumu1 committed Jan 3, 2025
1 parent d7964a4 commit 6409b31
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions modules/imap/js_modules/utils/handleNexterDateAction.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
function processNextActionDate(e) {
let isReloading = false;

let reload_and_redirect = async function () {
if (isReloading) {
return;
}
isReloading = true;

try {
Hm_Folders.reload_folders(true);
let path = getListPathParam();
await navigate(`?page=message_list&list_path=${path}`);
} finally {
isReloading = false;
}
Hm_Folders.reload_folders(true);
let path = getListPathParam();
await navigate(`?page=message_list&list_path=${path}`);
};



let collectCheckedIds = function () {
let ids = [];
$('input[type=checkbox]').each(function () {
Expand Down

0 comments on commit 6409b31

Please sign in to comment.