Add bypass action to selection toolbox (#2616)

This commit is contained in:
Chenlei Hu
2025-02-18 12:25:49 -05:00
committed by GitHub
parent 28dd6a2702
commit 25e5ab3a36
5 changed files with 55 additions and 8 deletions

View File

@@ -17,3 +17,8 @@ export function addToComboValues(widget: IComboWidget, value: string) {
widget.options.values.push(value)
}
}
export const isLGraphNode = (item: unknown): item is LGraphNode => {
const name = item?.constructor?.name
return name === 'ComfyNode' || name === 'LGraphNode'
}