Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed empty logic.

Mike Cao4c0d7d960d4e
diff --git a/src/components/common/LoadingPanel.tsx b/src/components/common/LoadingPanel.tsx
index dc18ca508..487252be6 100644
--- a/src/components/common/LoadingPanel.tsx
+++ b/src/components/common/LoadingPanel.tsx
@@ -23,7 +23,7 @@ export function LoadingPanel({
className?: string;
children: ReactNode;
}) {
- const isEmpty = !isLoading && isFetched && data && Array.isArray(data) && data.length > 0;
+ const isEmpty = !isLoading && isFetched && data && Array.isArray(data) && data.length === 0;
return (
<div className={classNames(styles.panel, className)}>