Fixed session properties.

This commit is contained in:
Mike Cao committed 2024-08-09 14:13:34 -07:00
1 parent 5feae93162
commit c7d39a3e94
5 files changed
+12 -18

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ export function LoadingPanel({
className?: string;
children: ReactNode;
}) {
const isEmpty = !data?.length && !isLoading && isFetched;
const isEmpty = !isLoading && isFetched && data && Array.isArray(data) && data.length > 0;
return (
<div className={classNames(styles.panel, className)}>