Skip to content

Commit 8b0d203

Browse files
committed
Fix default
1 parent 4aa25b9 commit 8b0d203

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

editor/src/messages/portfolio/document/utility_types/network_interface.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4107,21 +4107,7 @@ impl NodeNetworkInterface {
41074107
}
41084108
}
41094109

4110-
let tagged_value = if let InputConnector::Node { node_id, input_index } = input_connector {
4111-
self.reference(node_id, network_path)
4112-
.and_then(|reference| resolve_document_node_type(&reference))
4113-
.and_then(|node_definition| node_definition.node_template.document_node.inputs.get(*input_index).cloned())
4114-
.and_then(|node_input| {
4115-
if let NodeInput::Value { tagged_value, .. } = node_input {
4116-
Some((*tagged_value).clone())
4117-
} else {
4118-
None
4119-
}
4120-
})
4121-
.unwrap_or_else(|| self.tagged_value_from_input(input_connector, network_path))
4122-
} else {
4123-
self.tagged_value_from_input(input_connector, network_path)
4124-
};
4110+
let tagged_value = self.tagged_value_from_input(input_connector, network_path);
41254111

41264112
let value_input = NodeInput::value(tagged_value, true);
41274113

0 commit comments

Comments
 (0)