Fix type safety in Journal Entry Settings Menu

This commit is contained in:
Scott Idem
2026-01-08 19:08:06 -05:00
parent 5947459330
commit 09995eb0d7

View File

@@ -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}