fix: display all available settings (#16798)

Fixes: https://github.com/coder/coder/issues/15420
This commit is contained in:
Marcin Tojek
2025-03-04 15:46:25 +01:00
committed by GitHub
parent 84881a0e98
commit 975ea23d6f
2 changed files with 4 additions and 8 deletions
@@ -49,13 +49,6 @@ const OptionsTable: FC<OptionsTableProps> = ({ options, additionalValues }) => {
</TableHead>
<TableBody>
{Object.values(options).map((option) => {
if (
option.value === null ||
option.value === "" ||
option.value === undefined
) {
return null;
}
return (
<TableRow key={option.flag} className={`option-${option.flag}`}>
<TableCell>
@@ -51,6 +51,10 @@ export function optionValue(
break;
}
if (!option.value) {
return "";
}
// We show all experiments (including unsafe) that are currently enabled on a deployment
// but only show safe experiments that are not.
// biome-ignore lint/suspicious/noExplicitAny: opt.value is any
@@ -59,7 +63,6 @@ export function optionValue(
experimentMap[v] = true;
}
}
return experimentMap;
}
default: