Delete will now retry and no longer needs Axios. Code clean up. Bug fix when deleting a Journal Entry.

This commit is contained in:
Scott Idem
2025-05-07 18:12:43 -04:00
parent 86221e6aec
commit 2ff7b4fd70
4 changed files with 125 additions and 52 deletions

View File

@@ -1110,9 +1110,9 @@ function handle_cut_string(old_string: string) {
console.error('Error deleting journal entry:', error);
alert('Failed to delete journal entry.');
}).finally(() => {
$journals_slct.journal_id = null;
$journals_slct.journal_obj = null;
goto(`/journals/${$lq__journal_entry_obj?.journal_id}`);
goto(`/journals/${$journals_slct.journal_id}`);
// $journals_slct.journal_id = null;
// $journals_slct.journal_obj = null;
});
}
}}