Compare commits
2 Commits
2355fa6c17
...
d2cab2a1c4
Author | SHA1 | Date | |
---|---|---|---|
d2cab2a1c4 | |||
68f99a0d64 |
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user