diff --git a/packages/builder/src/components/design/PropertiesPanel/SettingsView.svelte b/packages/builder/src/components/design/PropertiesPanel/SettingsView.svelte
index af81ea3d24..fc8e42b95e 100644
--- a/packages/builder/src/components/design/PropertiesPanel/SettingsView.svelte
+++ b/packages/builder/src/components/design/PropertiesPanel/SettingsView.svelte
@@ -80,11 +80,11 @@
"field/link": RelationshipFieldSelect,
}
- const getControl = type => {
+ const getControl = (type) => {
return controlMap[type]
}
- const canRenderControl = setting => {
+ const canRenderControl = (setting) => {
const control = getControl(setting?.type)
if (!control) {
return false
@@ -95,7 +95,7 @@
return true
}
- const onInstanceNameChange = name => {
+ const onInstanceNameChange = (name) => {
onChange("_instanceName", name)
}
@@ -103,13 +103,13 @@
const form = findClosestMatchingComponent(
$currentAsset.props,
componentInstance._id,
- component => component._component.endsWith("/form")
+ (component) => component._component.endsWith("/form")
)
const dataSource = form?.dataSource
const fields = makeDatasourceFormComponents(dataSource)
onChange(
"_children",
- fields.map(field => field.json())
+ fields.map((field) => field.json())
)
}
@@ -123,7 +123,8 @@
label={def.label}
key={def.key}
value={get(assetInstance, def.key)}
- onChange={val => onScreenPropChange(def.key, val)} />
+ onChange={(val) => onScreenPropChange(def.key, val)}
+ />
{/each}
{/if}
@@ -134,7 +135,8 @@
label="Name"
key="_instanceName"
value={componentInstance._instanceName}
- onChange={onInstanceNameChange} />
+ onChange={onInstanceNameChange}
+ />
{/if}
{#if settings && settings.length > 0}
@@ -145,10 +147,12 @@
control={getControl(setting.type)}
label={setting.label}
key={setting.key}
- value={componentInstance[setting.key] ?? componentInstance[setting.key]?.defaultValue}
+ value={componentInstance[setting.key] ??
+ componentInstance[setting.key]?.defaultValue}
{componentInstance}
- onChange={val => onChange(setting.key, val)}
- props={{ options: setting.options, placeholder: setting.placeholder }} />
+ onChange={(val) => onChange(setting.key, val)}
+ props={{ options: setting.options, placeholder: setting.placeholder }}
+ />
{/if}
{/each}
{:else}
@@ -157,10 +161,12 @@
{/if}
- {#if componentDefinition?.component?.endsWith('/fieldgroup')}
-
+ {#if componentDefinition?.component?.endsWith("/fieldgroup")}
+
+
+
{/if}
+ title="Confirm Form Field Update"
+/>