fix(jsx/dom): handle empty arrays in render children loop (#4729)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* fix(jsx/dom): handle empty arrays in render children loop When an empty array is spliced into the children list, the loop index still increments, causing the next child to be skipped. This leads to a TypeError when accessing properties of undefined nodes. Add i-- and continue after splice so the loop re-examines the same index after flattening, correctly handling empty arrays. * ci: apply automated fixes ---------
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Maks Pikov <mixelburg@users.noreply.github.com>
- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Diff stats
2 files+20 added−0 removed
- tests:+18 added−0 removed
- other:+2 added−0 removed