Fixed session properties.

This commit is contained in:
Mike Cao 2024-08-09 14:13:34 -07:00
parent 5feae93162
commit c7d39a3e94
5 changed files with 12 additions and 18 deletions

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)}>