Skip to content

Commit

Permalink
popularLanguages needs to be an array (avoids js error in the case of…
Browse files Browse the repository at this point in the history
… no languages and early return here)
  • Loading branch information
brookgagnon committed Jun 26, 2024
1 parent 130b0da commit a294400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/fields/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OBFieldLanguage extends OBField {

// prevent multiple calls if this element appears twice in one form
OBFieldLanguage.languages = {};
OBFieldLanguage.popularLanguages = {};
OBFieldLanguage.popularLanguages = [];
const popularLanguages = {};

const result = await OB.API.postPromise('metadata', 'language_list', {});
Expand Down

0 comments on commit a294400

Please sign in to comment.