mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -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 => {
|
const removeTestToast = notificationId => {
|
||||||
setTestToasts(testToasts.filter(toast => toast.id !== notificationId));
|
setTestToasts(oldToasts =>
|
||||||
|
oldToasts.filter(toast => toast.id !== notificationId)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const canAdd = actions && actions.POST;
|
const canAdd = actions && actions.POST;
|
||||||
|
|||||||
Reference in New Issue
Block a user