Update public API syntax of remote (lazy) widgets (#2477)

Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
bymyself
2025-02-09 10:41:14 -07:00
committed by GitHub
parent 83cc49a42b
commit eeb1c34ada
6 changed files with 30 additions and 28 deletions

View File

@@ -565,8 +565,7 @@ export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = {
},
COMBO(node, inputName, inputData: InputSpec) {
const widgetStore = useWidgetStore()
const { type, options } = inputData[1]
const { remote, options } = inputData[1]
const defaultValue = widgetStore.getDefaultValue(inputData)
const res = {
@@ -575,7 +574,7 @@ export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = {
}) as IComboWidget
}
if (type === 'remote') {
if (remote) {
const remoteWidget = useRemoteWidget(inputData)
const origOptions = res.widget.options