Consistently parse content id for workflow modules when updating states

This commit is contained in:
guerler
2022-01-19 18:18:27 +01:00
committed by mvdbeek
parent d3d6c60705
commit 2ed8cf644d
2 changed files with 2 additions and 1 deletions
@@ -314,7 +314,7 @@ export default {
},
setData(data) {
this.config_form = data.config_form;
this.content_id = data.config_form?.id || data.content_id || this.content_id;
this.content_id = data.content_id;
this.tool_state = data.tool_state;
this.errors = data.errors;
this.tooltip = data.tooltip || "";
@@ -699,6 +699,7 @@ class WorkflowsAPIController(BaseGalaxyAPIController, UsesStoredWorkflowMixin, U
'annotation': inputs.get('__annotation', ''),
'name': module.get_name(),
'tool_state': module.get_state(),
'content_id': module.get_content_id(),
'inputs': module.get_all_inputs(connectable_only=True),
'outputs': module.get_all_outputs(),
'config_form': module.get_config_form(),