mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 07:19:13 +08:00
Fix loading workflows with steps without default label
Prior to https://github.com/galaxyproject/galaxy/pull/7422 we'd call str(default_label), so if `default_label` was None we'd get 'None'. Fixes part of https://github.com/galaxyproject/galaxy/issues/7447
This commit is contained in:
@@ -1012,7 +1012,7 @@ class WorkflowContentsManager(UsesAnnotations):
|
||||
if not module.label and module.type in ['data_input', 'data_collection_input']:
|
||||
new_state = safe_loads(state)
|
||||
default_label = new_state.get('name')
|
||||
if util.unicodify(default_label).lower() not in ['input dataset', 'input dataset collection']:
|
||||
if default_label and util.unicodify(default_label).lower() not in ['input dataset', 'input dataset collection']:
|
||||
step.label = module.label = default_label
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user