Skip to content

Commit

Permalink
fix: fix insert sheet regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Dec 15, 2024
1 parent 7b098ec commit e8fd621
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1534,15 +1534,15 @@ 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 = {
modalOpen: true,
state: "insertSheet",
heading: "Insert a Sheet",
url: "",
insertionLocation: e.index
insertionLocation: e.detail.index
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/ButtonBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
interface Props {
index: number;
last?: boolean;
insertSheet: (arg: {index: number}) => void;
insertSheet: (arg: {detail: {index: number}}) => void;
}
let {
Expand All @@ -25,7 +25,7 @@
}: Props = $props();
function dispatchInsertSheet(index) {
insertSheet({index: index});
insertSheet({detail: {index: index}});
}
function mobileInsert() {
Expand Down
4 changes: 2 additions & 2 deletions src/CellList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -213,7 +213,7 @@
<Cell
index={i}
on:startDrag={startDrag}
on:insertSheet
on:insertSheet={insertSheet}
on:updateNumberFormat
on:generateCode
on:insertMathCellAfter
Expand Down

0 comments on commit e8fd621

Please sign in to comment.