fix: fetch languages and correctly get language code in txAvailableLanguages

This commit is contained in:
Cori Hudson 2022-11-29 16:22:39 -05:00
parent 7c23165767
commit a3eed8987b

View file

@ -128,7 +128,8 @@ const txAvailableLanguages = async function (slug) {
});
const languages = await project.fetch('languages');
return languages.data.map(l => l.code);
await languages.fetch();
return languages.data.map(l => l.attributes.code);
};