From c735156ef2ca1b6b1be3d0a3fcb3958cb2e4b847 Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Mon, 1 Apr 2024 11:16:58 +0800 Subject: [PATCH] fix: Don't set language to null when reply/renote lang is null/undefined --- packages/client/src/components/MkPostForm.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/MkPostForm.vue b/packages/client/src/components/MkPostForm.vue index c7c706991c..c33da861ec 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -1279,11 +1279,11 @@ onMounted(() => { } // Inherit language settings when quoting or replying - if (props.renote) { - language.value = props.renote.lang ?? null; + if (props.renote?.lang) { + language.value = props.renote.lang; } - if (props.reply) { - language.value = props.reply.lang ?? null; + if (props.reply?.lang) { + language.value = props.reply.lang; } nextTick(() => watchForDraft());