diff --git a/src/lib/components/modes/JSONEditorRoot.svelte b/src/lib/components/modes/JSONEditorRoot.svelte index 8b19c8b3..0029fcf6 100644 --- a/src/lib/components/modes/JSONEditorRoot.svelte +++ b/src/lib/components/modes/JSONEditorRoot.svelte @@ -117,7 +117,10 @@ let handleRenderContextMenu: OnRenderContextMenuInternal $: handleRenderContextMenu = (items: ContextMenuItem[]) => { - return onRenderContextMenu(items, { mode, modal: insideModal, selection }) ?? (readOnly ? false: items) + return ( + onRenderContextMenu(items, { mode, modal: insideModal, selection }) ?? + (readOnly ? false : items) + ) } export function patch(operations: JSONPatchDocument): JSONPatchResult { diff --git a/src/lib/components/modes/tablemode/TableMode.svelte b/src/lib/components/modes/tablemode/TableMode.svelte index 3df49d58..ce56f0a4 100644 --- a/src/lib/components/modes/tablemode/TableMode.svelte +++ b/src/lib/components/modes/tablemode/TableMode.svelte @@ -979,7 +979,7 @@ } function handleContextMenu(event: Event) { - if (!onRenderContextMenu([]) || isEditingSelection(documentState.selection)) { + if (!onRenderContextMenu([]) || isEditingSelection(documentState.selection)) { return } @@ -1028,7 +1028,7 @@ } function handleContextMenuFromTableMenu(event: MouseEvent) { - if (!onRenderContextMenu([]) ) { + if (!onRenderContextMenu([])) { return }