[Cleanup] Remove WidgetOptions.forceInput (#3362)

This commit is contained in:
Chenlei Hu
2025-04-09 11:36:35 -04:00
committed by GitHub
parent a879f413bb
commit 609496957b
3 changed files with 1 additions and 7 deletions

View File

@@ -433,8 +433,7 @@ function getConfig(this: LGraphNode, widgetName: string) {
function isConvertibleWidget(widget: IWidget, config: InputSpec): boolean {
return (
// @ts-expect-error InputSpec is not typed correctly
(VALID_TYPES.includes(widget.type) || VALID_TYPES.includes(config[0])) &&
!widget.options?.forceInput
VALID_TYPES.includes(widget.type) || VALID_TYPES.includes(config[0])
)
}