diff --git a/src/App.svelte b/src/App.svelte index a2cd128e..01d561b4 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1534,7 +1534,7 @@ Please include a link to this sheet in the email to assist in debugging the prob } - function loadInsertSheetModal(e: {index: number} ) { + function loadInsertSheetModal(e: {detail: {index: number}} ) { retrieveRecentSheets(); modalInfo = { @@ -1542,7 +1542,7 @@ Please include a link to this sheet in the email to assist in debugging the prob state: "insertSheet", heading: "Insert a Sheet", url: "", - insertionLocation: e.index + insertionLocation: e.detail.index }; } diff --git a/src/ButtonBar.svelte b/src/ButtonBar.svelte index 59db0012..58ae5b5b 100644 --- a/src/ButtonBar.svelte +++ b/src/ButtonBar.svelte @@ -15,7 +15,7 @@ interface Props { index: number; last?: boolean; - insertSheet: (arg: {index: number}) => void; + insertSheet: (arg: {detail: {index: number}}) => void; } let { @@ -25,7 +25,7 @@ }: Props = $props(); function dispatchInsertSheet(index) { - insertSheet({index: index}); + insertSheet({detail: {index: index}}); } function mobileInsert() { diff --git a/src/CellList.svelte b/src/CellList.svelte index fac8239f..4babf11b 100644 --- a/src/CellList.svelte +++ b/src/CellList.svelte @@ -4,7 +4,7 @@ import ButtonBar from "./ButtonBar.svelte"; interface Props { - insertSheet: (arg: {index: number}) => void; + insertSheet: (arg: {detail: {index: number}}) => void; } let { insertSheet }: Props = $props(); @@ -213,7 +213,7 @@