Fix type safety in Journal Entry Settings Menu
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
async function delete_entry() {
|
||||
if (confirm(`Are you sure you want to delete this journal entry?`)) {
|
||||
let delete_method = 'disable';
|
||||
let delete_method: "delete" | "disable" | "hide" = "disable";
|
||||
if ($ae_loc.administrator_access && $ae_loc.edit_mode) {
|
||||
delete_method = 'delete';
|
||||
}
|
||||
@@ -92,6 +92,7 @@
|
||||
onchange={onSave}
|
||||
>
|
||||
<option value="">Select Category</option>
|
||||
<!-- @ts-ignore -->
|
||||
{#each journal?.cfg_json?.category_li ?? [] as category}
|
||||
<option value={category.code}>{category.name}</option>
|
||||
{/each}
|
||||
|
||||
Reference in New Issue
Block a user