Merge pull request #11637 from Budibase/fix/blank-screen-create
Fix for error seen when creating blank screen
This commit is contained in:
commit
f8e88c4144
|
@ -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`,
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue