We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef30166 commit bca22eaCopy full SHA for bca22ea
editor/src/messages/portfolio/document/utility_types/network_interface.rs
@@ -4242,6 +4242,12 @@ impl NodeNetworkInterface {
4242
if !delete_nodes.contains(downstream_id) || (*input_index == 0 && self.is_layer(downstream_id, network_path)) {
4243
stack.push(*downstream_id);
4244
}
4245
+ // If the traversal reaches the primary input of the node to delete then do not delete it
4246
+ if node_id == downstream_id && *input_index == 0 {
4247
+ can_delete = false;
4248
+ stack = Vec::new();
4249
+ break;
4250
+ }
4251
4252
// If the traversal reaches the export, then the current node is not a sole dependent and cannot be deleted
4253
else {
0 commit comments