8000 fix: display all available settings · coder/coder@7590fb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7590fb8

Browse files
committed
fix: display all available settings
1 parent d8561a6 commit 7590fb8

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export function optionValue(
66
option: SerpentOption,
77
additionalValues?: readonly string[],
88
) {
9+
if (!option.value) {
10+
return "";
11+
}
912
// If option annotations are present, use them to format the value.
1013
if (option.annotations) {
1114
for (const [k, v] of Object.entries(option.annotations)) {

0 commit comments

Comments
 (0)
0