"llm/git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "d632e23fbae005ca3522c0e3b2cf31a2499e4c03"
Commit 7291e303 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix issue with some workflows not getting serialized.

parent 77a176f9
......@@ -16,6 +16,9 @@ function hideWidget(node, widget, suffix = "") {
widget.type = CONVERTED_TYPE + suffix;
widget.serializeValue = () => {
// Prevent serializing the widget if we have no input linked
if (!node.inputs) {
return undefined;
}
const { link } = node.inputs.find((i) => i.widget?.name === widget.name);
if (link == null) {
return undefined;
......
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