mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 12:54:42 +00:00
fix(app): keep virtua patch parser-safe
This commit is contained in:
parent
ef30c3777a
commit
c4e8640e00
1 changed files with 2 additions and 2 deletions
|
|
@ -57,9 +57,9 @@ index 029201a2c8..e3c4c0ca3a 100644
|
|||
@@ -1430,5 +1449,7 @@ const Virtualizer = (props) => {
|
||||
else {
|
||||
for (let [i, j] = range(); i <= j; i++) {
|
||||
+ if (i >= 0 && i < count) {
|
||||
- items.push(props.data[i]);
|
||||
- indexes.push(i);
|
||||
+ if (i >= 0 && i < count) {
|
||||
+ items.push(props.data[i]);
|
||||
+ indexes.push(i);
|
||||
+ }
|
||||
|
|
@ -68,8 +68,8 @@ index 029201a2c8..e3c4c0ca3a 100644
|
|||
});
|
||||
const items = [];
|
||||
for (let [i, j] = range(); i <= j; i++) {
|
||||
+ if (i >= 0 && i < count) {
|
||||
- items.push(props.data[i]);
|
||||
+ if (i >= 0 && i < count) {
|
||||
+ items.push(props.data[i]);
|
||||
+ }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue