Skip to content

Commit

Permalink
handle empty layers tree
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Oct 24, 2024
1 parent f90c06c commit 0fdf7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/viewer/components/LayersVTree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default function Layers() {
return treeWalker;
}, [layers, isSmallScreen]);

if (!layers) {
if (!layers || !layers.length) {
return null;
}

Expand Down

0 comments on commit 0fdf7d1

Please sign in to comment.