File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ class Tree extends React.Component {
155155 }
156156
157157 renderChildNodes ( node ) {
158- if ( this . hasChildren ( node ) ) {
158+ if ( this . hasChildren ( node ) && node . expanded ) {
159159 return this . renderTreeNodes ( node . children ) ;
160160 }
161161
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class TreeNode extends React.Component {
4242 }
4343
4444 renderCollapseIcon ( ) {
45- if ( this . props . children === null ) {
45+ if ( this . props . rawChildren === undefined ) {
4646 return < i className = "fa" /> ;
4747 }
4848
@@ -66,7 +66,7 @@ class TreeNode extends React.Component {
6666 }
6767
6868 renderNodeIcon ( ) {
69- if ( this . props . children !== null ) {
69+ if ( this . props . rawChildren !== undefined ) {
7070 if ( ! this . props . expanded ) {
7171 return < i className = "fa fa-folder-o" /> ;
7272 }
You can’t perform that action at this time.
0 commit comments