From 2a02298ac2bd5b1cf2f37a04703f12400b2d813e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 3 Sep 2024 10:56:38 +0100 Subject: [PATCH] Auto select first available row action --- .../controls/ButtonActionEditor/actions/RowAction.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/RowAction.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/RowAction.svelte index 427a86b3f8..a65531a223 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/RowAction.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/RowAction.svelte @@ -18,7 +18,6 @@ tableId: view.tableId, resourceId: view.id, })) - $: console.log($viewsV2.list) $: datasourceOptions = [...(tableOptions || []), ...(viewOptions || [])] $: resourceId = parameters.resourceId $: fetchRowActions(resourceId) @@ -46,6 +45,9 @@ console.error(err) rowActions = [] } + + // Auto select first action + parameters.rowActionId = rowActions[0]?.id }