mirror of
https://github.com/ansible/awx.git
synced 2026-04-04 17:55:06 -02:30
Update usage of useDeleteItems
* Update usage of useDeleteItems. * Remove async when not necessary * Update return of promises
This commit is contained in:
@@ -67,7 +67,7 @@ function NotificationTemplatesList({ i18n }) {
|
||||
deletionError,
|
||||
clearDeletionError,
|
||||
} = useDeleteItems(
|
||||
useCallback(async () => {
|
||||
useCallback(() => {
|
||||
return Promise.all(
|
||||
selected.map(({ id }) => NotificationTemplatesAPI.destroy(id))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user