Skip to content

Commit 9389c2b

Browse files
refactor(site): only show derp tags if they are true (#11439)
1 parent 4d2fe26 commit 9389c2b

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

site/src/pages/HealthPage/WorkspaceProxyPage.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,19 @@ export const WorkspaceProxyPage = () => {
107107
<Pill icon={<TagOutlined />}>{region.version}</Pill>
108108
</Tooltip>
109109
)}
110-
<BooleanPill value={region.derp_enabled}>
111-
DERP Enabled
112-
</BooleanPill>
113-
<BooleanPill value={region.derp_only}>DERP Only</BooleanPill>
114-
<BooleanPill value={region.deleted}>Deleted</BooleanPill>
110+
{region.derp_enabled && (
111+
<BooleanPill value={region.derp_enabled}>
112+
DERP Enabled
113+
</BooleanPill>
114+
)}
115+
{region.derp_only && (
116+
<BooleanPill value={region.derp_only}>
117+
DERP Only
118+
</BooleanPill>
119+
)}
120+
{region.deleted && (
121+
<BooleanPill value={region.deleted}>Deleted</BooleanPill>
122+
)}
115123
</div>
116124
</header>
117125

0 commit comments

Comments
 (0)