Commit 92808718 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix escaped \{ appearing as { in workflows.

parent 97e18bf9
......@@ -344,14 +344,18 @@ function graphToPrompt() {
prompt = prompt.substring(0, startIndex) + randomOption + prompt.substring(endIndex + 1);
}
widget.value = prompt.replace("\\{", "{").replace("\\}", "}");
widget.value = prompt;
}
}
}
for (let y in n.widgets) {
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) {
let parent_node = n.getInputNode(y);
if (parent_node) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment