Skip to content

Commit

Permalink
CB-3884 fix: blink empty folder message in tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Mar 15, 2024
1 parent 3f25bf0 commit 1cf3179
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.treeNodeNestedMessage {
composes: theme-typography--caption from global;
padding: 4px 12px;
padding: 1px 12px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export const NavigationNodeNested = observer(
children = useDeferredValue(children);
empty = useDeferredValue(empty);

if (empty && !treeContext?.tree.settings?.foldersTree) {
return null;
}

if (nodeId !== undefined && rootFolder) {
return <NavigationNode nodeId={nodeId} path={path} expanded />;
}
Expand Down

0 comments on commit 1cf3179

Please sign in to comment.