From 448d830c518bf3dcb1f3f924eee1abf8e486e66a Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 14 May 2023 15:31:07 -0400 Subject: [PATCH] fix image not displaying if no text --- packages/client/src/components/MkSubNoteContent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index 87a30c247..521dd08ce 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -188,7 +188,7 @@ const mfms = props.note.text ? extractMfmWithAnimation(mfm.parse(props.note.text)) : null; -const hasMfm = $ref(mfms.length > 0); +const hasMfm = $ref(mfms && mfms.length > 0); let disableMfm = $ref(hasMfm && defaultStore.state.animatedMfm);