diff --git a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte index 7b47b0a73b..8d8418eb81 100644 --- a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte +++ b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte @@ -94,6 +94,11 @@ validateHash = newValidateHash } + + const handleChange = (name, e) => { + schema[name].type = e.detail + schema[name].constraints = FIELDS[e.detail.toUpperCase()].constraints + }
@@ -118,12 +123,12 @@
{#if rows.length > 0 && !error}
- {#each Object.values(schema) as column} + {#each Object.entries(schema) as [name, column]}
{column.name}