mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-23 19:47:01 +08:00
hotfix label assignment
This commit is contained in:
parent
f22dac25ef
commit
e57444a5b5
@ -374,7 +374,8 @@ export const ComfyWidgets = {
|
|||||||
defaultValue = inputData[1].default;
|
defaultValue = inputData[1].default;
|
||||||
}
|
}
|
||||||
const inputLabel = inputData[1]?.label || inputName
|
const inputLabel = inputData[1]?.label || inputName
|
||||||
inputData[1].label = inputLabel;
|
if (typeof inputData[1] === "undefined") inputData[1] = {}
|
||||||
|
Object.assign(inputData[1], { label: inputLabel });
|
||||||
const res = { widget: node.addWidget("combo", inputName, defaultValue, () => {}, { values: type, label: inputLabel }) };
|
const res = { widget: node.addWidget("combo", inputName, defaultValue, () => {}, { values: type, label: inputLabel }) };
|
||||||
if (inputData[1]?.control_after_generate) {
|
if (inputData[1]?.control_after_generate) {
|
||||||
res.widget.linkedWidgets = addValueControlWidgets(node, res.widget, undefined, undefined, inputData);
|
res.widget.linkedWidgets = addValueControlWidgets(node, res.widget, undefined, undefined, inputData);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user