Skip to content

Commit

Permalink
Fixed bug if node is NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
create3000 committed Dec 23, 2024
1 parent 4e264ae commit 46ba4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Editors/OutlineView.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ module .exports = class OutlineView extends Interface
element = $(e),
node = this .getNode (element);

if (node .getUserData (_expanded) && element .jstree ("is_closed", element))
if (node ?.getUserData (_expanded) && element .jstree ("is_closed", element))
{
element .data ("auto-expand", true);
element .jstree ("open_node", element);
Expand Down

0 comments on commit 46ba4a9

Please sign in to comment.