From 74d56b297b1989a3ab2764c3eaa4df913b6607f0 Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 31 Aug 2023 12:57:36 +0900 Subject: [PATCH] fix: posts not showing if text is null --- packages/client/src/components/MkNote.vue | 1 + packages/client/src/components/MkNoteSub.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index b99d87b7..89cd3ace 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -370,6 +370,7 @@ const localLang = localStorage.getItem("lang"); const isForeignLanguage: boolean = defaultStore.state.detectPostLanguage && + appearNote.value.text != null && (() => { const targetLanguage = ( localTranslateLang || diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 01593688..281d13b6 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -291,6 +291,7 @@ const localLang = localStorage.getItem("lang"); const isForeignLanguage: boolean = defaultStore.state.detectPostLanguage && + appearNote.value.text != null && (() => { const targetLanguage = ( localTranslateLang ||