Skip to content

Commit 7f82c1b

Browse files
committed
Fix
1 parent f97a359 commit 7f82c1b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import type { Health } from "api/api";
2-
import type { DeploymentStats, WorkspaceStatus } from "api/typesGenerated";
1+
import type { DeploymentStats, HealthcheckReport, WorkspaceStatus } from "api/typesGenerated";
32
import {
43
type FC,
54
useMemo,
@@ -67,7 +66,7 @@ const styles = {
6766
} satisfies Record<string, Interpolation<Theme>>;
6867

6968
export interface DeploymentBannerViewProps {
70-
health?: Health;
69+
health?: HealthcheckReport;
7170
stats?: DeploymentStats;
7271
fetchStats?: () => void;
7372
}

site/src/pages/HealthPage/HealthPage.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ export function HealthPageView({
143143
const healthSection =
144144
healthStatus[key as keyof typeof sections];
145145
const isHealthy = healthSection.healthy;
146-
if (healthSection instanceof DerphealthReport) {
147-
}
148-
const isWarning = (healthSection as DerphealthReport).warning;
146+
const isWarning = (healthSection as DerphealthReport)?.warning;
149147
return (
150148
<Box
151149
component="button"

0 commit comments

Comments
 (0)