diff --git a/src/lib/components/modes/tablemode/TableMode.svelte b/src/lib/components/modes/tablemode/TableMode.svelte index cb87696e..8d932d75 100644 --- a/src/lib/components/modes/tablemode/TableMode.svelte +++ b/src/lib/components/modes/tablemode/TableMode.svelte @@ -941,7 +941,7 @@ onRemoveRow: handleRemoveRow }) - const items = onRenderContextMenu(defaultItems) + const items = onRenderContextMenu(defaultItems) ?? defaultItems if (items === false) { return diff --git a/src/lib/components/modes/treemode/TreeMode.svelte b/src/lib/components/modes/treemode/TreeMode.svelte index d336298a..045a499b 100644 --- a/src/lib/components/modes/treemode/TreeMode.svelte +++ b/src/lib/components/modes/treemode/TreeMode.svelte @@ -1635,7 +1635,7 @@ onTransform: handleTransformSelection }) - const items = onRenderContextMenu(defaultItems) + const items = onRenderContextMenu(defaultItems) ?? defaultItems if (items === false) { return