Skip to content

Build your personal knowledge base with Trilium Notes

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

Elian Doran1638fd8590ae
diff --git a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx
index 2232503db3..6039053b50 100644
--- a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx
+++ b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx
@@ -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 />