diff --git a/static/app/views/automations/detail.tsx b/static/app/views/automations/detail.tsx
index 7c8bb4f3d8fad4..4a72a11a596a48 100644
--- a/static/app/views/automations/detail.tsx
+++ b/static/app/views/automations/detail.tsx
@@ -175,6 +175,7 @@ function AutomationDetailLoadingStates({automationId}: {automationId: string}) {
data: automation,
isPending,
isError,
+ error,
refetch,
} = useAutomationQuery(automationId);
@@ -183,7 +184,12 @@ function AutomationDetailLoadingStates({automationId}: {automationId: string}) {
}
if (isError) {
- return ;
+ return (
+
+ );
}
return ;
diff --git a/static/app/views/detectors/detail.tsx b/static/app/views/detectors/detail.tsx
index 1b25c4ca2ecf03..4a9f85a9e0b9b0 100644
--- a/static/app/views/detectors/detail.tsx
+++ b/static/app/views/detectors/detail.tsx
@@ -14,8 +14,10 @@ import {useDetectorQuery} from 'sentry/views/detectors/hooks';
function DetectorDetailsLoadingStates({
detectorId,
project,
+ isFetchingProjects,
}: {
detectorId: string;
+ isFetchingProjects: boolean;
project: Project | undefined;
}) {
const {
@@ -26,7 +28,7 @@ function DetectorDetailsLoadingStates({
refetch,
} = useDetectorQuery(detectorId);
- if (isPending || !project) {
+ if (isPending || isFetchingProjects) {
return ;
}
@@ -67,7 +69,11 @@ export default function DetectorDetails() {
id="DetectorDetails-Body"
isLoading={isLoading}
>
-
+
);
}