mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix(note_language): no separator when no languages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user