Commit a27fa6c
committed
fix: add Array.isArray guard to section reset in config module
The single-section reset branch used `typeof sectionData === 'object'`
to validate before in-place mutation, but arrays pass that check. Added
`!Array.isArray(sectionData)` to prevent array data from being treated
as a plain object during reset, which would corrupt it via
Object.keys/delete/Object.assign.1 parent 753b694 commit a27fa6c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
0 commit comments