mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: display all available settings (#16798)
Fixes: https://github.com/coder/coder/issues/15420
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user