Skip to content

Commit 005f189

Browse files
committedNov 23, 2023
fix: cleanup a console.log
1 parent 6eb9b82 commit 005f189

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/lib/components/modals/JSONEditorModal.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
JSONEditorSelection,
1313
JSONParser,
1414
JSONPathParser,
15+
JSONSelection,
1516
OnClassName,
1617
OnPatch,
1718
OnRenderMenu,
@@ -94,7 +95,7 @@
9495
}
9596
9697
function scrollToSelection() {
97-
const selection: JSONPath | null = last(stack)?.selection || null
98+
const selection: JSONEditorSelection | null = last(stack)?.selection || null
9899
if (selection) {
99100
refEditor.scrollTo(getFocusPath(selection))
100101
}

‎src/lib/utils/domUtils.ts

-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ export function insertActiveElementContents(
243243

244244
if (activeElement && activeElement.isContentEditable) {
245245
activeElement.textContent = replaceContents ? text : activeElement.textContent + text
246-
console.log('UPDATED TEXT', replaceContents ? text : activeElement.textContent + text)
247246
setCursorToEnd(activeElement)
248247
if (onActiveElement) {
249248
onActiveElement(activeElement)

0 commit comments

Comments
 (0)
Please sign in to comment.