mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Fixes bug where some toasts would reappear after being closed
This commit is contained in:
parent
83a9c3470e
commit
d96383b317
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user