Skip to content

Commit 975ea23

Browse files
authored
fix: display all available settings (#16798)
Fixes: #15420
1 parent 84881a0 commit 975ea23

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

site/src/pages/DeploymentSettingsPage/OptionsTable.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ const OptionsTable: FC<OptionsTableProps> = ({ options, additionalValues }) => {
4949
</TableHead>
5050
<TableBody>
5151
{Object.values(options).map((option) => {
52-
if (
53-
option.value === null ||
54-
option.value === "" ||
55-
option.value === undefined
56-
) {
57-
return null;
58-
}
5952
return (
6053
<TableRow key={option.flag} className={`option-${option.flag}`}>
6154
<TableCell>

site/src/pages/DeploymentSettingsPage/optionValue.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ export function optionValue(
5151
break;
5252
}
5353

54+
if (!option.value) {
55+
return "";
56+
}
57+
5458
// We show all experiments (including unsafe) that are currently enabled on a deployment
5559
// but only show safe experiments that are not.
5660
// biome-ignore lint/suspicious/noExplicitAny: opt.value is any
@@ -59,7 +63,6 @@ export function optionValue(
5963
experimentMap[v] = true;
6064
}
6165
}
62-
6366
return experimentMap;
6467
}
6568
default:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy