From 1ec9acc855f71d8509af66eb41609e6ebd8ec080 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 8 Apr 2024 16:46:05 +0100 Subject: [PATCH] Revert unnecessary changes --- .../ButtonActionEditor/actions/ExportData.svelte | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ExportData.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ExportData.svelte index 6ed0135844..a857bc7ede 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ExportData.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ExportData.svelte @@ -60,16 +60,12 @@ ) } ) - $: componentOptions = components.map(component => { - let value = component._id - if (component._component.endsWith("/tableblock")) { - value = `${component._id}-table` - } - return { - label: component._instanceName, - value, - } - }) + $: componentOptions = components.map(table => ({ + label: table._instanceName, + value: table._component.endsWith("/tableblock") + ? `${table._id}-table` + : table._id, + })) $: selectedTableId = parameters.tableComponentId?.includes("-") ? parameters.tableComponentId.split("-")[0] : parameters.tableComponentId