Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feat/search-component
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Mar 5, 2024
2 parents d622317 + 59109bd commit 6343ebc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: records change restoreHierarchyState occor error #1203\n\n",
"type": "none",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/react-vtable/src/tables/base-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const BaseTable: React.FC<Props> = React.forwardRef((props, ref) => {
} else if (hasRecords && !isEqual(props.records, prevRecords.current, { skipFunction: skipFunctionDiff })) {
prevRecords.current = props.records;
tableContext.current.table.setRecords(props.records, {
restoreHierarchyState: props.option.restoreHierarchyState
restoreHierarchyState: props.option?.restoreHierarchyState
});
handleTableRender();
}
Expand Down

0 comments on commit 6343ebc

Please sign in to comment.