From 8b9b6dd4e206926e3105f4f883278ce998beb2f7 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 29 Sep 2021 12:29:26 +0100 Subject: [PATCH] Refresh data UI tables when creating a row --- .../builder/src/components/backend/DataTable/DataTable.svelte | 2 ++ .../components/backend/DataTable/buttons/CreateRowButton.svelte | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte index c97587c17d..00b20d4a09 100644 --- a/packages/builder/src/components/backend/DataTable/DataTable.svelte +++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte @@ -50,6 +50,7 @@ }) } + // Fetch data whenever schema changes const onUpdateColumns = () => { search.update({ schema, @@ -78,6 +79,7 @@ {#if schema && Object.keys(schema).length > 0} {#if !isUsersTable} diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte index 7f62a246f3..2a31d02375 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte @@ -12,5 +12,5 @@ {title} - +