Skip to content

Commit efce3ab

Browse files
committed
Missing case for children with no plotly_editor_traits
1 parent df05878 commit efce3ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/containers/Fold.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class Fold extends Component {
4747
// allow custom components in folds to automatically show up,
4848
// except for Folds of Folds, which should keep their visibility rules
4949
if (
50-
child.type.plotly_editor_traits &&
51-
!child.type.plotly_editor_traits.foldable
50+
!child.type.plotly_editor_traits ||
51+
(child.type.plotly_editor_traits &&
52+
!child.type.plotly_editor_traits.foldable)
5253
) {
5354
this.foldVisible = true;
5455
return;

0 commit comments

Comments
 (0)