table route fix
This commit is contained in:
parent
5ed5da2cee
commit
977da343f8
|
@ -2,10 +2,10 @@
|
||||||
import TableDataTable from "components/backend/DataTable/DataTable.svelte"
|
import TableDataTable from "components/backend/DataTable/DataTable.svelte"
|
||||||
import { tables, database } from 'builderStore/store/backend/'
|
import { tables, database } from 'builderStore/store/backend/'
|
||||||
|
|
||||||
$: selectedTable = $tables.selected
|
$: console.log('Tables: ', $tables)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $database._id && selectedTable.name}
|
{#if $database?._id && $tables?.selected?.name}
|
||||||
<TableDataTable />
|
<TableDataTable />
|
||||||
{:else}<i>Create your first table to start building</i>{/if}
|
{:else}<i>Create your first table to start building</i>{/if}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue