Skip to content

Commit 0c53ab9

Browse files
authored
Fix context menu on node with only optional input (#514)
1 parent eb5f4d9 commit 0c53ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/core/widgetInputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export function getWidgetConfig(slot) {
379379
function getConfig(widgetName) {
380380
const { nodeData } = this.constructor
381381
return (
382-
nodeData?.input?.required[widgetName] ??
382+
nodeData?.input?.required?.[widgetName] ??
383383
nodeData?.input?.optional?.[widgetName]
384384
)
385385
}

0 commit comments

Comments
 (0)