From 119107834f8d6bde43d5d86c1448dd19b8163519 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 14 Dec 2020 13:24:09 +0000 Subject: [PATCH] Rename create new row to create new user for users table --- .../builder/src/components/backend/DataTable/DataTable.svelte | 1 + .../backend/DataTable/buttons/CreateRowButton.svelte | 3 ++- .../userInterface/ComponentNavigationTree/index.svelte | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte index 5ff7925c5f..436a3b4dee 100644 --- a/packages/builder/src/components/backend/DataTable/DataTable.svelte +++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte @@ -44,6 +44,7 @@ {#if schema && Object.keys(schema).length > 0} diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte index dfd8e6f4ac..19975ac1a1 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/CreateRowButton.svelte @@ -3,6 +3,7 @@ import CreateEditRow from "../modals/CreateEditRow.svelte" export let modalContentComponent = CreateEditRow + export let title = "Create New Row" let modal @@ -10,7 +11,7 @@
diff --git a/packages/builder/src/components/userInterface/ComponentNavigationTree/index.svelte b/packages/builder/src/components/userInterface/ComponentNavigationTree/index.svelte index 8ccf8f7ac9..720b18f8f9 100644 --- a/packages/builder/src/components/userInterface/ComponentNavigationTree/index.svelte +++ b/packages/builder/src/components/userInterface/ComponentNavigationTree/index.svelte @@ -7,7 +7,7 @@ $: { const allRoutes = $store.routes - const sortedPaths = Object.keys(allRoutes).sort() + const sortedPaths = Object.keys(allRoutes || {}).sort() const selectedRoleId = $selectedAccessRole const selectedScreenId = $store.selectedScreenId