diff --git a/packages/builder/src/components/common/bindings/BindingPanel.svelte b/packages/builder/src/components/common/bindings/BindingPanel.svelte index c08509b0e4..5114ad2d7a 100644 --- a/packages/builder/src/components/common/bindings/BindingPanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingPanel.svelte @@ -236,11 +236,12 @@ } const onChangeJSValue = e => { + jsValue = encodeJSBinding(e.detail) if (!e.detail?.trim()) { // Don't bother saving empty values as JS - updateValue("") + updateValue(null) } else { - updateValue(encodeJSBinding(e.detail)) + updateValue(jsValue) } }