From 61a143628b2fccfc88030b07ba55cdce6a18cc04 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 7 Jun 2023 10:48:08 +0100 Subject: [PATCH] Revert tableType flag and derive from table instead --- .../builder/src/components/backend/DataTable/DataTable.svelte | 1 - .../backend/DataTable/buttons/grid/GridImportButton.svelte | 4 ++-- .../components/backend/DataTable/modals/ImportModal.svelte | 1 + packages/frontend-core/src/components/grid/layout/Grid.svelte | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte index 1b0c92bde0..81df5a475d 100644 --- a/packages/builder/src/components/backend/DataTable/DataTable.svelte +++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte @@ -32,7 +32,6 @@ diff --git a/packages/builder/src/components/backend/DataTable/modals/ImportModal.svelte b/packages/builder/src/components/backend/DataTable/modals/ImportModal.svelte index c020d1a7ac..1696c6ba03 100644 --- a/packages/builder/src/components/backend/DataTable/modals/ImportModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/ImportModal.svelte @@ -14,6 +14,7 @@ export let tableId export let tableType + let rows = [] let allValid = false let displayColumn = null diff --git a/packages/frontend-core/src/components/grid/layout/Grid.svelte b/packages/frontend-core/src/components/grid/layout/Grid.svelte index 81f42ca257..dc24fc0d64 100644 --- a/packages/frontend-core/src/components/grid/layout/Grid.svelte +++ b/packages/frontend-core/src/components/grid/layout/Grid.svelte @@ -33,7 +33,6 @@ export let API = null export let tableId = null - export let tableType = null export let schemaOverrides = null export let allowAddRows = true export let allowAddColumns = true @@ -67,7 +66,6 @@ rand, config, tableId: tableIdStore, - tableType, schemaOverrides: schemaOverridesStore, } context = { ...context, ...createEventManagers() }