Skip to content

Commit

Permalink
fix: fix iterator map in getCheckboxState() #3177 #3239
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Jan 2, 2025
1 parent dbe4fa7 commit 1e1f5d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vtable",
"comment": "fix: fix iterator map in getCheckboxState() #3177 #3239",
"type": "none"
}
],
"packageName": "@visactor/vtable"
}
2 changes: 1 addition & 1 deletion packages/vtable/src/ListTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ export class ListTable extends BaseTable implements ListTableAPI {
if (this.options.groupBy) {
stateArr = getGroupCheckboxState(this) as any;
}
return stateArr.map((state: any) => {
return Array.from(stateArr, (state: any) => {
return state[field];
});
}
Expand Down

0 comments on commit 1e1f5d9

Please sign in to comment.