mirror of
https://github.com/oxynote/oxynote.git
synced 2026-10-17 02:49:18 +02:00
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:
parent
5863f7607b
commit
fcc73181e3
|
|
@ -168,7 +168,7 @@ export default function () {
|
|||
}
|
||||
|
||||
// rollback
|
||||
oldNotifs?.forEach(({ key, data }) => {
|
||||
oldNotifs.forEach(({ key, data }) => {
|
||||
queryCache.setQueryData(key, data)
|
||||
})
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user