From cdd32caf0b8ab648f3e621a85ea3433aea795ef4 Mon Sep 17 00:00:00 2001 From: Vadim Lev Date: Thu, 15 Dec 2022 13:27:58 +0200 Subject: [PATCH] refactor notif array delete --- .../src/modules/notifications/notification-manager.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/designer/elsa-workflows-designer/src/modules/notifications/notification-manager.tsx b/src/designer/elsa-workflows-designer/src/modules/notifications/notification-manager.tsx index f9a16d20c..de7f87498 100644 --- a/src/designer/elsa-workflows-designer/src/modules/notifications/notification-manager.tsx +++ b/src/designer/elsa-workflows-designer/src/modules/notifications/notification-manager.tsx @@ -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) => {