Skip to content

Commit

Permalink
Fix Deeply Nested Data Crash (#3179)
Browse files Browse the repository at this point in the history
Avoid array slice
  • Loading branch information
jameskerr authored Mar 5, 2025
1 parent e2528f2 commit 27d5fb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/zui/src/zui-kit/core/list-view/list-view-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ export class ListViewApi {
const value = this.args.values[index]
if (this.rows[rowIndex]) continue
const newRows = this.inspect(value, index)
this.rows.splice(rowIndex, newRows.length, ...newRows)
this.rows = [
...this.rows.slice(0, rowIndex),
...newRows,
...this.rows.slice(rowIndex + newRows.length)
]
}
}

Expand Down

0 comments on commit 27d5fb5

Please sign in to comment.