From 387a574b0d240dac7a30e8d7433f20e66865901a Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sat, 8 Jan 2022 11:22:07 +0100 Subject: [PATCH] Make duration fully optional --- src/components/Timeline/Shared/Attachment/Audio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Timeline/Shared/Attachment/Audio.tsx b/src/components/Timeline/Shared/Attachment/Audio.tsx index c0da956f..04d8d64e 100644 --- a/src/components/Timeline/Shared/Attachment/Audio.tsx +++ b/src/components/Timeline/Shared/Attachment/Audio.tsx @@ -96,7 +96,7 @@ const AttachmentAudio: React.FC = ({ )} - {audio.meta.original.duration ? ( + {audio.meta?.original?.duration ? (