Merge pull request #7780 from mvdbeek/update_workflow_param_type

Update parameter_input type when changing parameter type
This commit is contained in:
John Chilton
2019-04-19 16:27:53 -04:00
committed by GitHub
@@ -276,6 +276,9 @@ var Node = Backbone.Model.extend({
// the output already exists, but the output formats may have changed.
// Therefore we update the datatypes and destroy invalid connections.
node.output_terminals[output.name].datatypes = output.extensions;
if (node.type == 'parameter_input') {
node.output_terminals[output.name].attributes.type = output.type;
}
node.output_terminals[output.name].destroyInvalidConnections();
}
});