diff --git a/src/JSONEditor.svelte b/src/JSONEditor.svelte index 730bd30..0ad937a 100644 --- a/src/JSONEditor.svelte +++ b/src/JSONEditor.svelte @@ -59,7 +59,7 @@ state = syncState(doc, state, [], callback, true) } - export function collapse (doCollapse = () => false) { + export function collapse (callback = () => false) { state = syncState(doc, state, [], callback, true) }