table route fix

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-23 13:27:16 +01:00
parent d27e03c215
commit 9d3088c3f3
1 changed files with 2 additions and 2 deletions

View File

@ -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)
</script>
{#if $database._id && selectedTable.name}
{#if $database?._id && $tables?.selected?.name}
<TableDataTable />
{:else}<i>Create your first table to start building</i>{/if}