From a879f413bb12d5640e99c047c6b8a573c027a66f Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 9 Apr 2025 10:45:51 -0400 Subject: [PATCH] [Cleanup] Remove WidgetOptions.inputIsOptional (#3361) --- src/services/litegraphService.ts | 1 - src/types/litegraph-augmentation.d.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/services/litegraphService.ts b/src/services/litegraphService.ts index 66067d997..0b8a7922e 100644 --- a/src/services/litegraphService.ts +++ b/src/services/litegraphService.ts @@ -147,7 +147,6 @@ export const useLitegraphService = () => { widget.label = st(nameKey, widget.label ?? inputName) widget.options ??= {} Object.assign(widget.options, { - inputIsOptional: inputSpec.isOptional, forceInput: inputSpec.forceInput, advanced: inputSpec.advanced, hidden: inputSpec.hidden diff --git a/src/types/litegraph-augmentation.d.ts b/src/types/litegraph-augmentation.d.ts index ed96d42d2..bc0f74aed 100644 --- a/src/types/litegraph-augmentation.d.ts +++ b/src/types/litegraph-augmentation.d.ts @@ -26,10 +26,6 @@ declare module '@comfyorg/litegraph/dist/types/widgets' { * The minimum size of the node if the widget is present. */ minNodeSize?: Size - /** - * Whether the widget is optional. - */ - inputIsOptional?: boolean /** * Whether the widget is forced to be an input. */