diff --git a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte
index c72acc252a..b3d50c1658 100644
--- a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte
+++ b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte
@@ -14,6 +14,11 @@
export let block
export let isTestModal
+ $: parsedBindings = bindings.map(binding => {
+ binding.icon = "ShareAndroid"
+ return binding
+ })
+
let table
let schemaFields
@@ -79,6 +84,10 @@
return [value]
}
+ if (type === "json") {
+ return value.value
+ }
+
return value
}
@@ -109,7 +118,7 @@
{isTestModal}
{field}
{schema}
- {bindings}
+ bindings={parsedBindings}
{value}
{onChange}
/>
@@ -124,7 +133,7 @@
on:change={e => onChange(e, field, schema.type)}
label={field}
type="string"
- {bindings}
+ bindings={parsedBindings}
fillWidth={true}
allowJS={true}
updateOnChange={false}
diff --git a/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte b/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte
index f3abad6e25..30b888b5fb 100644
--- a/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte
+++ b/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte
@@ -5,11 +5,13 @@
DatePicker,
Multiselect,
TextArea,
+ Label,
} from "@budibase/bbui"
import LinkedRowSelector from "components/common/LinkedRowSelector.svelte"
import DrawerBindableInput from "../../common/bindings/DrawerBindableInput.svelte"
import ModalBindableInput from "../../common/bindings/ModalBindableInput.svelte"
import AutomationBindingPanel from "../../common/bindings/ServerBindingPanel.svelte"
+ import Editor from "components/integration/QueryEditor.svelte"
export let onChange
export let field
@@ -18,6 +20,11 @@
export let bindings
export let isTestModal
+ $: parsedBindings = bindings.map(binding => {
+ binding.icon = "ShareAndroid"
+ return binding
+ })
+
function schemaHasOptions(schema) {
return !!schema.constraints?.inclusion?.length
}
@@ -50,6 +57,18 @@
/>
{:else if schema.type === "longform"}
+{:else if schema.type === "json"}
+
+ {
+ if (e.detail?.value !== value[field]) {
+ onChange(e, field, schema.type)
+ }
+ }}
+ value={value[field]}
+ />
{:else if schema.type === "link"}
{:else if schema.type === "string" || schema.type === "number"}
@@ -60,7 +79,7 @@
on:change={e => onChange(e, field)}
label={field}
type="string"
- {bindings}
+ bindings={parsedBindings}
fillWidth={true}
allowJS={true}
updateOnChange={false}