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
1 changed files with 1 additions and 1 deletions

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 || {})) {