Fix context menu on node with only optional input (#514)

This commit is contained in:
Chenlei Hu
2024-08-18 16:25:45 -04:00
committed by GitHub
parent eb5f4d9bc7
commit 0c53ab9177

View File

@@ -379,7 +379,7 @@ export function getWidgetConfig(slot) {
function getConfig(widgetName) {
const { nodeData } = this.constructor
return (
nodeData?.input?.required[widgetName] ??
nodeData?.input?.required?.[widgetName] ??
nodeData?.input?.optional?.[widgetName]
)
}