mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -03:30
Fixes bug where some toasts would reappear after being closed
This commit is contained in:
@@ -114,7 +114,9 @@ function NotificationTemplatesList({ i18n }) {
|
||||
}, []);
|
||||
|
||||
const removeTestToast = notificationId => {
|
||||
setTestToasts(testToasts.filter(toast => toast.id !== notificationId));
|
||||
setTestToasts(oldToasts =>
|
||||
oldToasts.filter(toast => toast.id !== notificationId)
|
||||
);
|
||||
};
|
||||
|
||||
const canAdd = actions && actions.POST;
|
||||
|
||||
Reference in New Issue
Block a user