Merge pull request #11637 from Budibase/fix/blank-screen-create

Fix for error seen when creating blank screen
This commit is contained in:
deanhannigan 2023-08-31 15:44:06 +01:00 committed by GitHub
commit f8e88c4144
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,9 @@ import { Screen } from "./utils/Screen"
import { Component } from "./utils/Component"
export default function (datasources) {
if (!Array.isArray(datasources)) {
return []
}
return datasources.map(datasource => {
return {
name: `${datasource.name} - List`,

View File

@ -110,7 +110,7 @@
if (mode === "table") {
datasourceModal.show()
} else if (mode === "blank") {
let templates = getTemplates($store, $tables.list)
let templates = getTemplates($tables.list)
const blankScreenTemplate = templates.find(
t => t.id === "createFromScratch"
)