From 0da0d14b3df109c0c19b91fc7a6225d88adec67d Mon Sep 17 00:00:00 2001 From: josdejong Date: Tue, 2 Jun 2020 22:40:23 +0200 Subject: [PATCH] Fix collapse method --- src/JSONEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }