diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte index 20d9784260..ef7e23a958 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte @@ -13,6 +13,7 @@ export let componentInput: StaticInput export let subFieldType: InputType | undefined = undefined export let selectOptions: StaticOptions['selectOptions'] | undefined = undefined + export let id: string | undefined const dispatch = createEventDispatcher() const flipDurationMs = 200 @@ -253,6 +254,7 @@
{#if subFieldType === 'table-column' || subFieldType == 'ag-grid'} item.field)} on:add={({ detail }) => { if (!componentInput.value) componentInput.value = [] @@ -315,40 +318,4 @@ /> {/if} {/if} -
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte index 2a1fd34115..949c79e037 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/ComponentPanel.svelte @@ -225,6 +225,7 @@
{#if componentSettings.item.data.componentInput.type === 'static'} ('AppViewerContext') + const { worldStore } = getContext('AppViewerContext') const dispatch = createEventDispatcher() let result = [] function subscribeToAllOutputs(observableOutputs: Record> | undefined) { if (observableOutputs) { - Object.entries(observableOutputs).forEach(([k, output]) => { - output?.subscribe( - { - id: 'alloutputs-quickadd' + $selectedComponent?.[0] + '-' + k, - next: (value) => { - if (k === 'result') { - result = value - } - } - }, - result - ) - }) + observableOutputs?.['result']?.subscribe( + { + id: 'alloutputs-quickadd-' + id + '-result', + next: (value) => { + result = value + } + }, + result + ) } } @@ -46,8 +43,7 @@ } } - $: $selectedComponent?.[0] && - subscribeToAllOutputs($worldStore?.outputsById?.[$selectedComponent?.[0]]) + $: id && subscribeToAllOutputs($worldStore?.outputsById?.[id]) $: updateRemainingColumns(result, columns) diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/SubTypeEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/SubTypeEditor.svelte index 77dd5e9bcc..e1171c56bd 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/SubTypeEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/SubTypeEditor.svelte @@ -5,6 +5,7 @@ export let value: any export let componentInput: StaticInput export let subFieldType: InputType | undefined + export let id: string | undefined let fakeComponentInput: StaticInput = { ...componentInput, @@ -15,4 +16,9 @@ $: fakeComponentInput && (value = fakeComponentInput.value) - + diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/SynchronizeColumns.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/SynchronizeColumns.svelte deleted file mode 100644 index bf72b5e300..0000000000 --- a/frontend/src/lib/components/apps/editor/settingsPanel/SynchronizeColumns.svelte +++ /dev/null @@ -1,86 +0,0 @@ - - -{#if shouldDisplaySyncButton} -
- -
-{/if} diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte index 5a97ee7416..d6c36d12c6 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte @@ -27,6 +27,7 @@ export let selectOptions: StaticOptions['selectOptions'] | undefined = undefined export let placeholder: string | undefined = undefined export let format: string | undefined = undefined + export let id: string | undefined const { onchange } = getContext('AppViewerContext') @@ -150,7 +151,7 @@
{/if} {:else if fieldType === 'array'} - + {:else if fieldType === 'schema'}