fix: isChildEvent issue + loader is shown forever (#15524)

This commit is contained in:
Alex van Andel authored and GitHub committed 2024-06-21 13:07:46 +00:00
1 parent 89ac9a3d31
commit c2d7054ec4
2 files changed
+8 -5

No files matched your search

@@ -863,14 +863,14 @@ const Main = ({
const isMobile = useMediaQuery("(max-width: 768px)");
const searchParams = useCompatSearchParams();
if (!rawData || status === "pending") {
return <SkeletonLoader />;
}
if (status === "error") {
return <Alert severity="error" title="Something went wrong" message={errorMessage} />;
}
if (!rawData || status === "pending") {
return <SkeletonLoader />;
}
const isFilteredByOnlyOneItem =
(filters?.teamIds?.length === 1 || filters?.userIds?.length === 1) &&
rawData.eventTypeGroups.length === 1;