Preserve exposed state on copy (#1397)

This commit is contained in:
0HyperCube
2023-08-23 13:31:51 +01:00
committed by GitHub
parent cc0192977d
commit 09a509c8b5

View File

@@ -123,7 +123,10 @@ impl DocumentNode {
output_index,
lambda,
};
} else if let Some(new_input) = default_input(self.name.clone(), index) {
} else if let Some(mut new_input) = default_input(self.name.clone(), index) {
if let NodeInput::Value { exposed, .. } = &mut new_input {
*exposed = true;
}
*input = new_input;
} else {
warn!("Node does not exist in library with that many inputs");