Skip to content

Commit

Permalink
fix for empty language leading to spurious comma
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimnielandt authored and fxprunayre committed Dec 20, 2023
1 parent 33d1fb9 commit 1f16287
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,13 @@
if (!this.mainLanguage) {
return [];
}
return [this.mainLanguage].concat(this.otherLanguage).unique();
return [this.mainLanguage]
.concat(this.otherLanguage)
.unique()
.filter(function (l) {
// do not allow null values
return !!l;
});
},
isPublished: function (pubOption) {
if (pubOption) {
Expand Down

0 comments on commit 1f16287

Please sign in to comment.