diff --git a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte
index ea9cb644e0..806961476e 100644
--- a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte
+++ b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte
@@ -91,9 +91,24 @@
}
const handleTypeChange = column => evt => {
- schema[column].type = evt.target.value
+ schema[column].type = evt.detail
validateCSV()
}
+
+ const typeOptions = [
+ {
+ label: "Text",
+ value: "string",
+ },
+ {
+ label: "Number",
+ value: "number",
+ },
+ {
+ label: "Date",
+ value: "datetime",
+ },
+ ]
@@ -108,14 +123,12 @@
{columnName}
+ on:change={handleTypeChange(columnName)}
+ options={typeOptions}
+ placeholder={null}
+ getOptionLabel={option => option.label}
+ getOptionValue={option => option.value} />
{schema[columnName].success ? 'Success' : 'Failure'}
@@ -128,12 +141,10 @@
{#if fields.length}
-
-
+
{/if}
@@ -201,7 +212,7 @@
.field {
display: grid;
- grid-template-columns: 2fr 4fr 1fr 1fr;
+ grid-template-columns: 2fr 2fr 1fr auto;
margin-top: var(--spacing-m);
align-items: center;
grid-gap: var(--spacing-m);
diff --git a/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte b/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte
index f6a4298521..3a82dc3815 100644
--- a/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte
+++ b/packages/builder/src/components/backend/TableNavigator/modals/CreateTableModal.svelte
@@ -92,7 +92,6 @@