diff --git a/src/extensions/core/widgetInputs.ts b/src/extensions/core/widgetInputs.ts index ee6dab683..0d2515531 100644 --- a/src/extensions/core/widgetInputs.ts +++ b/src/extensions/core/widgetInputs.ts @@ -506,7 +506,12 @@ export function mergeIfValid( } } - return { customConfig: customSpec?.[1] ?? {} } + return { + customConfig: + customSpec && Array.isArray(customSpec) && customSpec[1] + ? customSpec[1] + : {} + } } app.registerExtension({