fix(note_language): no separator when no languages

This commit is contained in:
Elian Doran 2025-03-06 20:50:58 +02:00
parent ddd0c3a878
commit e795caa2f3
No known key found for this signature in database

View File

@ -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;
}