diff --git a/apps/client/src/features/app-settings/useAppSettingsMenu.tsx b/apps/client/src/features/app-settings/useAppSettingsMenu.tsx index e1acbaa6d..3ddf396d4 100644 --- a/apps/client/src/features/app-settings/useAppSettingsMenu.tsx +++ b/apps/client/src/features/app-settings/useAppSettingsMenu.tsx @@ -19,8 +19,8 @@ const staticOptions = [ { id: 'settings__general', label: 'General settings' }, { id: 'settings__view', label: 'View settings' }, { id: 'settings__custom-views', label: 'Custom views' }, - { id: 'settings__port', label: 'Server port' }, { id: 'sharing__mcp', label: 'MCP Server' }, + ...(isDocker ? [] : [{ id: 'settings__port', label: 'Server port' }]), ], }, { @@ -97,18 +97,12 @@ export function useAppSettingsMenu() { const options: Readonly = useMemo( () => - staticOptions.map((option) => ({ - ...option, - // if we are in docker don't show the port option - secondary: - 'secondary' in option - ? isDocker && option.id === 'settings' - ? [...option.secondary.filter(({ id }) => id !== 'settings__port')] - : [...option.secondary] - : undefined, + staticOptions.map((option) => // if there is an update then highlight the about setting - highlight: option.id === 'about' && data.hasUpdates ? 'New version available' : undefined, - })), + option.id === 'about' && data.hasUpdates + ? Object.assign({}, option, { highlight: 'New version available' }) + : option, + ), [data], );