1
0
Fork 0
mirror of synced 2024-09-10 14:35:47 +12:00

Fix crash when schemaNonUI does not exist

This commit is contained in:
Andrew Kingston 2023-08-01 14:18:12 +01:00
parent cb78788bdb
commit cb01768e5a

View file

@ -18,7 +18,7 @@ async function parseSchemaUI(ctx: Ctx, view: CreateViewRequest) {
newObj: Record<string, any>,
existingObj: Record<string, any>
) {
const result = Object.entries(newObj).some(([key, value]) => {
const result = Object.entries(newObj || {}).some(([key, value]) => {
const isObject = typeof value === "object"
const existing = existingObj[key]
if (isObject && hasOverrides(value, existing || {})) {