Commit b5f692d
committed
fix: prevent array mismatch in MultiPicker selections
- Truncate selections array to components.length before padding
- Prevents index out-of-bounds crashes when selections is longer than components
- Ensures selections and components arrays are always synchronized1 parent 3e0f3a2 commit b5f692d
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments