From 9d3088c3f3e915a2386b3ed5d83686927762d734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 23 Mar 2021 13:27:16 +0100 Subject: [PATCH] table route fix --- .../[application]/data/table/[selectedTable]/index.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/[application]/data/table/[selectedTable]/index.svelte b/packages/builder/src/pages/[application]/data/table/[selectedTable]/index.svelte index 90413341d0..f19778dc30 100644 --- a/packages/builder/src/pages/[application]/data/table/[selectedTable]/index.svelte +++ b/packages/builder/src/pages/[application]/data/table/[selectedTable]/index.svelte @@ -2,10 +2,10 @@ import TableDataTable from "components/backend/DataTable/DataTable.svelte" import { tables, database } from 'builderStore/store/backend/' - $: selectedTable = $tables.selected + $: console.log('Tables: ', $tables) -{#if $database._id && selectedTable.name} +{#if $database?._id && $tables?.selected?.name} {:else}Create your first table to start building{/if}