Skip to content

Commit

Permalink
chore: some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Dec 8, 2023
1 parent 5c6ea84 commit b878c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/controls/contextmenu/ContextMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
tabindex="-1"
class="jse-contextmenu"
bind:this={refContextMenu}
on:keydown={(event) => handleKeyDown(event)}
on:keydown={handleKeyDown}
>
{#each items as item}
{#if isMenuButton(item)}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modes/treemode/JSONNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
// It is possible that the applied key differs from newKey,
// to prevent duplicate keys. Here we figure out the actually applied key
return last(parseJSONPointer(operations[0].path)) || newKey
return last(parseJSONPointer(operations[0].path)) as string
}
function handleMouseDown(event: MouseEvent & { currentTarget: EventTarget & HTMLDivElement }) {
Expand Down

0 comments on commit b878c43

Please sign in to comment.