diff --git a/app/views/api/v1/attachments/_simple_detail.json.jbuilder b/app/views/api/v1/attachments/_simple_detail.json.jbuilder index 160b9205..f2accd90 100644 --- a/app/views/api/v1/attachments/_simple_detail.json.jbuilder +++ b/app/views/api/v1/attachments/_simple_detail.json.jbuilder @@ -1,4 +1,4 @@ -json.id attachment.uuid || attachment.uuid +json.id attachment.uuid.blank? ? attachment.id : attachment.uuid json.title attachment.title json.description attachment.description json.filesize number_to_human_size(attachment.filesize)