Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Feb 7, 2024
1 parent a897111 commit 4b6eb12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_file_view_mode(self, content_type):
class ImageFieldSerializer(BaseImageFieldSerializer):
def __call__(self):
result = super().__call__()
if IEnhancedLinksEnabled.providedBy(self.context):
if result and IEnhancedLinksEnabled.providedBy(self.context):
result.update(
{
"getObjSize": human_readable_size(result["size"]),
Expand Down

0 comments on commit 4b6eb12

Please sign in to comment.