Skip to content

Commit

Permalink
fix(get_workflow_specification): avoid returning null parameters (rea…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Jun 26, 2024
1 parent 2ca1891 commit 4df0591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reana_server/rest/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,8 @@ def get_workflow_specification(workflow_id_or_name, user): # noqa
jsonify(
{
"specification": workflow.reana_specification,
"parameters": workflow.input_parameters,
# `input_parameters` can be null, if so return an empty dict
"parameters": workflow.input_parameters or {},
}
),
200,
Expand Down

0 comments on commit 4df0591

Please sign in to comment.