update Promise.all map functions to not be async

This commit is contained in:
John Mitchell
2019-04-12 14:35:35 -04:00
parent b9e0b2e0ad
commit 63894bf822
3 changed files with 5 additions and 10 deletions

View File

@@ -178,7 +178,7 @@ class OrganizationsList extends Component {
let errorHandled;
try {
await Promise.all(orgsToDelete.map(async (org) => api.destroyOrganization(org.id)));
await Promise.all(orgsToDelete.map((org) => api.destroyOrganization(org.id)));
this.handleClearOrgsToDelete();
} catch (err) {
errorHandled = handleHttpError(err);