Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: show file and folder count only if greater 0

Ilian Sapundshievb0237962b900
diff --git a/app/perspectives/grid-perspective/components/GridPagination.tsx b/app/perspectives/grid-perspective/components/GridPagination.tsx
index d8bb64d10..09a6e3a5c 100644
--- a/app/perspectives/grid-perspective/components/GridPagination.tsx
+++ b/app/perspectives/grid-perspective/components/GridPagination.tsx
@@ -161,7 +161,7 @@ const GridPagination = (props: Props) => {
</div>
)}
</div>
- {showPagination ? (
+ {showPagination && (
<Tooltip
title={
directories.length +
@@ -187,7 +187,8 @@ const GridPagination = (props: Props) => {
onChange={handleChange}
/>
</Tooltip>
- ) : (
+ )}
+ {!showPagination && (directories.length > 0 || files.length > 0) && (
<div style={{ padding: 15, bottom: 10 }}>
<Typography
style={{