Skip to content

Commit 6d4e8fd

Browse files
authored
fix(Permalink): prevent Permalink crash when a layer has no children attribute (#736)
1 parent 1b39dbf commit 6d4e8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Permalink/Permalink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Permalink extends PureComponent {
116116
} else if (
117117
!isBaseLayer(l) &&
118118
!isLayerHidden(l) &&
119-
!(l.children || l.get("children")).some((ll) => {
119+
!(l.children || l.get("children"))?.some((ll) => {
120120
return ll.getVisible ? ll.getVisible() : ll.visible;
121121
})
122122
) {

0 commit comments

Comments
 (0)