From cd8e007da81986da3d2505390da9d94bf243c14e Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Sat, 11 Feb 2023 01:07:20 +0000 Subject: [PATCH 1/2] force display column to be chosen when uploading csv --- .../backend/TableNavigator/modals/CreateTableModal.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte b/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte index d7beab11e4..923645f582 100644 --- a/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte +++ b/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte @@ -105,7 +105,10 @@ title="Create Table" confirmText="Create" onConfirm={saveTable} - disabled={error || !name || (rows.length && !allValid)} + disabled={error || + !name || + (rows.length && !allValid) || + displayColumn == null} > Date: Sat, 11 Feb 2023 01:14:58 +0000 Subject: [PATCH 2/2] fix displayColumn logic --- .../backend/TableNavigator/modals/CreateTableModal.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte b/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte index 923645f582..1987a51e5d 100644 --- a/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte +++ b/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte @@ -107,8 +107,7 @@ onConfirm={saveTable} disabled={error || !name || - (rows.length && !allValid) || - displayColumn == null} + (rows.length && (!allValid || displayColumn == null))} >