Skip to content

Commit

Permalink
legacy: serializers: schemas: legacyjson: return empty list if files …
Browse files Browse the repository at this point in the history
…not present
  • Loading branch information
yashlamba authored and slint committed Oct 11, 2023
1 parent 89edc4a commit e0ea313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/zenodo_rdm/legacy/serializers/schemas/legacyjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def dump_files(self, obj):
"links": links,
}
)
return result or missing
return result

@pre_dump
def hook_metadata(self, data, **kwargs):
Expand Down

0 comments on commit e0ea313

Please sign in to comment.