fix(ribbon): unable to set content language to "none"

This commit is contained in:
Elian Doran 2025-09-22 18:37:03 +03:00
parent effe0a4f51
commit 1638fd8590
No known key found for this signature in database

View File

@ -341,7 +341,7 @@ function NoteLanguageSwitch({ note }: { note?: FNote | null }) {
return <FormListItem
rtl={locale.rtl}
checked={checked}
onClick={() => setCurrentNoteLanguage(locale.id)}
onClick={() => setCurrentNoteLanguage(locale.id || null)}
>{locale.name}</FormListItem>
} else {
return <FormDropdownDivider />