fix: Don't set language to null when reply/renote lang is null/undefined

This commit is contained in:
Lhcfl 2024-04-01 11:16:58 +08:00
parent 7e0f20c24f
commit c735156ef2
1 changed files with 4 additions and 4 deletions

View File

@ -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());