diff --git a/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx b/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx index 0cf3534a536ef..ea9fadb4b0c72 100644 --- a/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx +++ b/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx @@ -49,13 +49,6 @@ const OptionsTable: FC = ({ options, additionalValues }) => { {Object.values(options).map((option) => { - if ( - option.value === null || - option.value === "" || - option.value === undefined - ) { - return null; - } return ( diff --git a/site/src/pages/DeploymentSettingsPage/optionValue.ts b/site/src/pages/DeploymentSettingsPage/optionValue.ts index b959814dccca5..7e689c0e83dad 100644 --- a/site/src/pages/DeploymentSettingsPage/optionValue.ts +++ b/site/src/pages/DeploymentSettingsPage/optionValue.ts @@ -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: