handle js bindings in default value

This commit is contained in:
Peter Clement 2025-01-27 15:43:46 +00:00
parent 09bb958f0f
commit 44d9a51fc2
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@
decodeJSBinding,
findHBSBlocks,
isJSBinding,
processStringSync,
} from "@budibase/string-templates"
import DrawerBindableInput from "@/components/common/bindings/DrawerBindableInput.svelte"
@ -230,7 +231,10 @@
}
const stateUpdate = {
[selectedKey]: e.detail,
[selectedKey]: processStringSync(
e.detail,
$previewStore.selectedComponentContext
),
}
previewStore.updateState(stateUpdate)
editorValue = e.detail