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.
This commit is contained in:
FredApps 2026-10-10 17:48:10 +02:00
parent 5863f7607b
commit fcc73181e3

View File

@ -168,7 +168,7 @@ export default function () {
}
// rollback
oldNotifs?.forEach(({ key, data }) => {
oldNotifs.forEach(({ key, data }) => {
queryCache.setQueryData(key, data)
})
},