Skip to content

Commit 882a248

Browse files
committed
assert not null
1 parent d738fbc commit 882a248

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

site/src/pages/HealthPage/DERPRegionPage.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const DERPRegionPage: FC = () => {
4242
return (
4343
<>
4444
<Helmet>
45-
<title>{pageTitle(region.RegionName, "Health")}</title>
45+
<title>{pageTitle(region!.RegionName, "Health")}</title>
4646
</Helmet>
4747

4848
<Header>
@@ -70,7 +70,7 @@ export const DERPRegionPage: FC = () => {
7070
</Link>
7171
<HeaderTitle>
7272
<HealthyDot severity={severity as HealthSeverity} />
73-
{region.RegionName}
73+
{region!.RegionName}
7474
</HeaderTitle>
7575
</hgroup>
7676
</Header>
@@ -91,12 +91,12 @@ export const DERPRegionPage: FC = () => {
9191
<section>
9292
<div css={{ display: "flex", flexWrap: "wrap", gap: 12 }}>
9393
<Tooltip title="Region ID">
94-
<Pill icon={<TagOutlined />}>{region.RegionID}</Pill>
94+
<Pill icon={<TagOutlined />}>{region!.RegionID}</Pill>
9595
</Tooltip>
9696
<Tooltip title="Region Code">
97-
<Pill icon={<CodeOutlined />}>{region.RegionCode}</Pill>
97+
<Pill icon={<CodeOutlined />}>{region!.RegionCode}</Pill>
9898
</Tooltip>
99-
<BooleanPill value={region.EmbeddedRelay}>
99+
<BooleanPill value={region!.EmbeddedRelay}>
100100
Embedded Relay
101101
</BooleanPill>
102102
</div>
@@ -111,7 +111,7 @@ export const DERPRegionPage: FC = () => {
111111
);
112112
return (
113113
<section
114-
key={node.HostName}
114+
key={node!.HostName}
115115
css={{
116116
border: `1px solid ${theme.palette.divider}`,
117117
borderRadius: 8,
@@ -120,10 +120,10 @@ export const DERPRegionPage: FC = () => {
120120
>
121121
<header css={reportStyles.header}>
122122
<div>
123-
<h4 css={reportStyles.title}>{node.HostName}</h4>
123+
<h4 css={reportStyles.title}>{node!.HostName}</h4>
124124
<div css={reportStyles.ports}>
125-
<span>DERP Port: {node.DERPPort ?? "None"}</span>
126-
<span>STUN Port: {node.STUNPort ?? "None"}</span>
125+
<span>DERP Port: {node!.DERPPort ?? "None"}</span>
126+
<span>STUN Port: {node!.STUNPort ?? "None"}</span>
127127
</div>
128128
</div>
129129

0 commit comments

Comments
 (0)