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

View file

@ -1279,11 +1279,11 @@ onMounted(() => {
} }
// Inherit language settings when quoting or replying // Inherit language settings when quoting or replying
if (props.renote) { if (props.renote?.lang) {
language.value = props.renote.lang ?? null; language.value = props.renote.lang;
} }
if (props.reply) { if (props.reply?.lang) {
language.value = props.reply.lang ?? null; language.value = props.reply.lang;
} }
nextTick(() => watchForDraft()); nextTick(() => watchForDraft());