From fcc73181e3d7acb28afe6e889bf4a8ae57da26da Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Sat, 10 Oct 2026 17:48:10 +0200 Subject: [PATCH] fix(notifications): remove redundant rollback optional chain The rollback guard already narrows the captured prior notification state. Call forEach directly to satisfy the type-aware lint rule. All 61 focused tests, full formatting and source review pass. Final-head static checks and remaining aggregate validation are still pending. --- web/app/composables/api/useNotificationAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/composables/api/useNotificationAPI.ts b/web/app/composables/api/useNotificationAPI.ts index 73fd8d5a..398640ae 100644 --- a/web/app/composables/api/useNotificationAPI.ts +++ b/web/app/composables/api/useNotificationAPI.ts @@ -168,7 +168,7 @@ export default function () { } // rollback - oldNotifs?.forEach(({ key, data }) => { + oldNotifs.forEach(({ key, data }) => { queryCache.setQueryData(key, data) }) },