Skip to content

Commit

Permalink
quick clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Feb 6, 2025
1 parent ecf5830 commit 8d8aa62
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions web/src/app/admin/settings/SettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,6 @@ export function SettingsForm() {
]);
}

const isProSearchDisabled =
combinedSettings?.settings?.pro_search_disabled === null
? combinedSettings?.enterpriseSettings == null
? true
: false
: (combinedSettings?.settings?.pro_search_disabled ?? false);

return (
<div>
{popup}
Expand All @@ -238,7 +231,7 @@ export function SettingsForm() {
<Checkbox
label="Pro Search Disabled"
sublabel="If set, users will not be able to use Pro Search."
checked={isProSearchDisabled}
checked={settings.pro_search_disabled ?? false}
onChange={(e) =>
handleToggleSettingsField("pro_search_disabled", e.target.checked)
}
Expand Down

0 comments on commit 8d8aa62

Please sign in to comment.