Skip to content

Commit df86da3

Browse files
authored
[Bug] Add null check on customSpec being null (#3810)
1 parent 3aea2c1 commit df86da3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/extensions/core/widgetInputs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,7 @@ export function mergeIfValid(
506506
}
507507
}
508508

509-
// @ts-expect-error fixme ts strict error
510-
return { customConfig: customSpec[1] }
509+
return { customConfig: customSpec?.[1] ?? {} }
511510
}
512511

513512
app.registerExtension({

0 commit comments

Comments
 (0)