Skip to content

Commit

Permalink
minor fix on tableData null check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrn committed Aug 21, 2024
1 parent b26e2f7 commit 650feb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-table",
"version": "2.0.4",
"version": "2.0.6",
"description": "Datatable for React based on https://material-ui.com/api/table/ with additional features",
"main": "dist/index.js",
"types": "types/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/data-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,9 @@ export default class DataManager {
}
pointer = pointer[pathPart];
});
pointer.tableData.markedForTreeRemove = true;
if (pointer.tableData) {
pointer.tableData.markedForTreeRemove = true;
}
};

const traverseChildrenAndUnmark = (rowData) => {
Expand Down

0 comments on commit 650feb6

Please sign in to comment.