From 28ebc65397a331dedf8f5e20d9f93cbaa030d19b Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Fri, 11 Feb 2022 14:43:10 +0000 Subject: [PATCH] fix bindings --- .../automation/SetupPanel/RowSelector.svelte | 10 +++++----- .../src/components/common/bindings/BindingPanel.svelte | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte index 4450468ae5..7df1f69beb 100644 --- a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte +++ b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte @@ -4,7 +4,6 @@ import DrawerBindableInput from "../../common/bindings/DrawerBindableInput.svelte" import AutomationBindingPanel from "../../common/bindings/ServerBindingPanel.svelte" import { createEventDispatcher } from "svelte" - import ModalBindableInput from "components/common/bindings/ModalBindableInput.svelte" import { automationStore } from "builderStore" import RowSelectorTypes from "./RowSelectorTypes.svelte" @@ -107,14 +106,15 @@ {onChange} /> {:else} - onChange(e, field, schema.type)} + label={field} + type="string" {bindings} + fillWidth={true} allowJS={false} /> {/if} diff --git a/packages/builder/src/components/common/bindings/BindingPanel.svelte b/packages/builder/src/components/common/bindings/BindingPanel.svelte index 554220ed1a..2bb5bd9cbc 100644 --- a/packages/builder/src/components/common/bindings/BindingPanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingPanel.svelte @@ -30,10 +30,10 @@ let helpers = handlebarsCompletions() let getCaretPosition let search = "" - let initialValueJS = value?.startsWith("{{ js ") - let mode = initialValueJS ? "JavaScript" : "Handlebars" - let jsValue = initialValueJS ? value : null - let hbsValue = initialValueJS ? null : value + //let initialValueJS = value?.startsWith("{{ js ") + let mode = "Handlebars" + let jsValue = null + let hbsValue = value $: usingJS = mode === "JavaScript" $: searchRgx = new RegExp(search, "ig")