Skip to content

Commit c4e8640

Browse files
committed
fix(app): keep virtua patch parser-safe
1 parent ef30c37 commit c4e8640

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

patches/virtua@0.49.1.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ index 029201a2c8..e3c4c0ca3a 100644
5757
@@ -1430,5 +1449,7 @@ const Virtualizer = (props) => {
5858
else {
5959
for (let [i, j] = range(); i <= j; i++) {
60-
+ if (i >= 0 && i < count) {
6160
- items.push(props.data[i]);
6261
- indexes.push(i);
62+
+ if (i >= 0 && i < count) {
6363
+ items.push(props.data[i]);
6464
+ indexes.push(i);
6565
+ }
@@ -68,8 +68,8 @@ index 029201a2c8..e3c4c0ca3a 100644
6868
});
6969
const items = [];
7070
for (let [i, j] = range(); i <= j; i++) {
71-
+ if (i >= 0 && i < count) {
7271
- items.push(props.data[i]);
72+
+ if (i >= 0 && i < count) {
7373
+ items.push(props.data[i]);
7474
+ }
7575
}

0 commit comments

Comments
 (0)