This commit is contained in:
Andrew Kingston 2023-10-24 08:46:55 +01:00
parent f355933bf3
commit c5537dd58c
1 changed files with 3 additions and 2 deletions

View File

@ -11,13 +11,14 @@ export const createStores = () => {
} }
export const deriveStores = context => { export const deriveStores = context => {
const { API, definition, schemaOverrides, columnWhitelist, datasource } = context const { API, definition, schemaOverrides, columnWhitelist, datasource } =
context
const schema = derived(definition, $definition => { const schema = derived(definition, $definition => {
let schema = getDatasourceSchema({ let schema = getDatasourceSchema({
API, API,
datasource: get(datasource), datasource: get(datasource),
definition: $definition definition: $definition,
}) })
if (!schema) { if (!schema) {
return null return null