fix langs not showing correctly

This commit is contained in:
Aria Moradi
2021-03-09 18:05:34 +03:30
parent c842c51fb6
commit 7e1a4259d7
2 changed files with 37 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ function sourceToLangList(sources: ISource[]) {
const result: string[] = [];
sources.forEach((source) => {
if (result.indexOf(source.lang) === -1 && langCodeToName(source.lang) !== 'Error') { result.push(source.lang); }
if (result.indexOf(source.lang) === -1) { result.push(source.lang); }
});
result.sort(langSortCmp);