refactor notif array delete
This commit is contained in:
parent
a1b14551bc
commit
cdd32caf0b
|
|
@ -29,7 +29,7 @@ export class NotificationManager {
|
|||
|
||||
deleteNotif = (id) => {
|
||||
console.log(id);
|
||||
notificationStore.notifications = [...notificationStore.notifications.filter(item => item.id !== id)]
|
||||
notificationStore.notifications = notificationStore.notifications.filter(item => item.id !== id)
|
||||
}
|
||||
|
||||
handleAddNotification = (e: Notification) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue