"megatron/git@developer.sourcefind.cn:wuxk1/megatron-lm.git" did not exist on "456f17280fcc25eb6bb3d9de7f9cad170b7b98d9"
Commit 52e74a2b authored by pythongosssss's avatar pythongosssss
Browse files

Fixed crash removing nodes

due to output link is still being set but not valid
parent c0f53250
......@@ -107,12 +107,18 @@ app.registerExtension({
node.size = node.computeSize();
for (const l of node.outputs[0].links || []) {
app.graph.links[l].color = color;
const link = app.graph.links[l];
if (link) {
link.color = color;
}
}
}
if (inputNode) {
app.graph.links[inputNode.inputs[0].link].color = color;
const link = app.graph.links[inputNode.inputs[0].link];
if (link) {
link.color = color;
}
}
};
......
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