Fix test failures in localized and suspicious_names

This commit is contained in:
Bryan Housel
2020-02-03 12:37:43 -05:00
parent b2b2689fb2
commit 4aa4686e7f
4 changed files with 216 additions and 133 deletions
+4
View File
@@ -22,6 +22,10 @@ export function uiFieldLocalized(field, context) {
var _countryCode;
var _tags;
// A concern here in switching to async data means that _languagesArray will not
// be available the first time through, so things like the fetchers and
// the language() function will not work immediately.
context.data().get('languages')
.then(loadLanguagesArray)
.catch(function() { /* ignore */ });