From a806dff3f4add6d246c550a635a870e04e5dcd27 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 11 Mar 2024 16:18:37 +0000 Subject: [PATCH] Remove concept of validity from binding panel and allowing saving anything --- .../components/common/bindings/BindingPanel.svelte | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/builder/src/components/common/bindings/BindingPanel.svelte b/packages/builder/src/components/common/bindings/BindingPanel.svelte index 327a2b5eda..d0f88f8029 100644 --- a/packages/builder/src/components/common/bindings/BindingPanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingPanel.svelte @@ -9,7 +9,6 @@ } from "@budibase/bbui" import { createEventDispatcher, getContext, onMount } from "svelte" import { - isValid, decodeJSBinding, encodeJSBinding, processStringSync, @@ -35,7 +34,6 @@ export let bindings export let value = "" - export let valid export let allowJS = false export let allowHelpers = true export let context = null @@ -134,11 +132,8 @@ const updateValue = val => { const runtimeExpression = readableToRuntimeBinding(enrichedBindings, val) - valid = isValid(runtimeExpression) - if (valid) { - dispatch("change", val) - requestUpdateEvaluation(runtimeExpression, context) - } + dispatch("change", val) + requestUpdateEvaluation(runtimeExpression, context) } const onSelectHelper = (helper, js) => { @@ -182,10 +177,6 @@ jsValue = encodeJSBinding(e.detail) updateValue(jsValue) } - - onMount(() => { - valid = isValid(readableToRuntimeBinding(enrichedBindings, value)) - })