Commit f3960f0
committed
fix: make annotateDirtyNodesWithError return new nodes instead of mutating
node.data.error and node.data.extendedError were being set directly on
node objects, bypassing the immutable update pattern used elsewhere in
the codebase. Both call sites (payload-limit path and network-error
path) now consume the returned mapped array.1 parent 7543ec7 commit f3960f0
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
181 | | - | |
182 | 179 | | |
183 | | - | |
| 180 | + | |
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
| |||
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | 223 | | |
230 | | - | |
| 224 | + | |
231 | 225 | | |
232 | 226 | | |
233 | 227 | | |
| |||
0 commit comments