mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 15:57:52 -02:30
update Promise.all map functions to not be async
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user