Fixing issue stopping view test from creating tables.

This commit is contained in:
mike12345567 2021-06-21 13:41:58 +01:00
parent 0248098964
commit 68c8769686
1 changed files with 2 additions and 2 deletions

View File

@ -23,14 +23,14 @@
schema, schema,
name: $views.selected?.name, name: $views.selected?.name,
} }
$: type = $tables.selected.type $: type = $tables.selected?.type
$: isInternal = type === "internal" $: isInternal = type === "internal"
// Fetch rows for specified table // Fetch rows for specified table
$: { $: {
loading = true loading = true
const loadingTableId = $tables.selected?._id const loadingTableId = $tables.selected?._id
api.fetchDataForTable($tables.selected._id).then(rows => { api.fetchDataForTable($tables.selected?._id).then(rows => {
loading = false loading = false
// If we started a slow request then quickly change table, sometimes // If we started a slow request then quickly change table, sometimes