From cd00a3c67f0fe72a4437f3a2eae3e7eae5266ebf Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 22 Oct 2024 13:55:35 +0200 Subject: [PATCH] test: refs #8039 fix WorkerNotification e2e --- src/pages/Worker/Card/WorkerNotificationsManager.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Worker/Card/WorkerNotificationsManager.vue b/src/pages/Worker/Card/WorkerNotificationsManager.vue index 731e073cd..53571fb93 100644 --- a/src/pages/Worker/Card/WorkerNotificationsManager.vue +++ b/src/pages/Worker/Card/WorkerNotificationsManager.vue @@ -44,8 +44,9 @@ async function toggleNotification(notification) { `worker.notificationsManager.${notification.active ? '' : 'un'}subscribed` ), }); - } catch { + } catch (e) { notification.active = !notification.active; + throw e; } }