Merge pull request #178 from corihudson/fix-available-languages

Fix txAvailableLanguages
This commit is contained in:
cori hudson 2022-12-02 14:05:11 -05:00 committed by GitHub
commit 215caa4613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
};