Skip to content

Commit

Permalink
Merge pull request #17639 from mvdbeek/fix_data_reault
Browse files Browse the repository at this point in the history
[23.1] Fix DataResult type
  • Loading branch information
mvdbeek authored Mar 8, 2024
2 parents fab4424 + 81086bf commit a3c14ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/services/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ def _data(
# If stats were requested, return them.
if "stats" in kwargs:
if stats["data"]["max"] == 0:
return DataResult(dataset_type=indexer.dataset_type, data=None)
return DataResult(dataset_type=indexer.dataset_type, data=[])
else:
return stats

Expand Down

0 comments on commit a3c14ea

Please sign in to comment.