mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-03 19:56:46 +00:00
Fix escaped \{ appearing as { in workflows.
This commit is contained in:
parent
97e18bf9fd
commit
928087184e
@ -344,13 +344,17 @@ function graphToPrompt() {
|
|||||||
prompt = prompt.substring(0, startIndex) + randomOption + prompt.substring(endIndex + 1);
|
prompt = prompt.substring(0, startIndex) + randomOption + prompt.substring(endIndex + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
widget.value = prompt.replace("\\{", "{").replace("\\}", "}");
|
widget.value = prompt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let y in n.widgets) {
|
for (let y in n.widgets) {
|
||||||
input_[n.widgets[y].name] = n.widgets[y].value;
|
if (n.widgets[y].dynamic_prompt && n.widgets[y].dynamic_prompt === true) {
|
||||||
|
input_[n.widgets[y].name] = n.widgets[y].value.replace("\\{", "{").replace("\\}", "}");
|
||||||
|
} else {
|
||||||
|
input_[n.widgets[y].name] = n.widgets[y].value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (let y in n.inputs) {
|
for (let y in n.inputs) {
|
||||||
let parent_node = n.getInputNode(y);
|
let parent_node = n.getInputNode(y);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user