Skip to content

Build your personal knowledge base with Trilium Notes

fix(note_language): no separator when no languages

Elian Dorane795caa2f3e3
diff --git a/src/public/app/widgets/note_language.ts b/src/public/app/widgets/note_language.ts
index 457091225a..e582a54f2e 100644
--- a/src/public/app/widgets/note_language.ts
+++ b/src/public/app/widgets/note_language.ts
@@ -160,9 +160,7 @@ export default class NoteLanguageWidget extends NoteContextAwareWidget {
// This will separate the list of languages from the "Configure languages" button.
// If there is at least one language.
- if (locales.length > 2) {
- locales.push("---");
- }
+ locales.push("---");
return locales;
}