Compare commits

..

2 Commits

Author SHA1 Message Date
d2cab2a1c4 Fix bug for with not finding parent node on repretitive trees 2024-07-23 17:08:17 +03:00
68f99a0d64 Fix doc 2024-06-24 14:46:03 +03:00
2 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,9 @@ export const useTreeViewNodes = ({
if (node.disabled) { if (node.disabled) {
return true; return true;
} }
while (node.parentId != null) { while (node && node.parentId != null) {
node = instance.getNode(node.parentId); node = instance.getNode(node.parentId);
if (node.disabled) { if (node?.disabled) {
return true; return true;
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "dipal-x-tree", "name": "dipal-x-tree",
"version": "6.17.1", "version": "6.17.2",
"description": "Customized and fixed version of mui x tree for dipal admina panel project", "description": "Customized and fixed version of mui x tree for dipal admina panel project",
"author": "MUI Team", "author": "MUI Team",
"main": "./node/index.js", "main": "./node/index.js",