mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Fixed empty logic.
This commit is contained in:
parent
c7d39a3e94
commit
4c0d7d960d
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export function LoadingPanel({
|
||||||
className?: string;
|
className?: string;
|
||||||
children: ReactNode;
|
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 (
|
return (
|
||||||
<div className={classNames(styles.panel, className)}>
|
<div className={classNames(styles.panel, className)}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue