Skip to content

Commit 671d917

Browse files
committed
Hide Expected Config Path for Gordon
Signed-off-by: David Gageot <[email protected]>
1 parent c52f298 commit 671d917

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

src/extension/ui/src/components/tabs/YourClients.tsx

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -309,26 +309,30 @@ function ClientSetting({
309309
{mcpClientState.client.url}
310310
</Link>
311311
</Stack>
312-
<Typography sx={{ fontWeight: 'bold' }}>
313-
Expected Config Path
314-
</Typography>
315-
<Typography
316-
component="pre"
317-
sx={{
318-
color: 'text.primary',
319-
fontFamily: 'monospace',
320-
whiteSpace: 'nowrap',
321-
overflow: 'auto',
322-
backgroundColor: 'background.default',
323-
padding: 1,
324-
borderRadius: 1,
325-
fontSize: '12px',
326-
}}
327-
>
328-
{mcpClientState.client.expectedConfigPath?.[
329-
client.host.platform as 'win32' | 'darwin' | 'linux'
330-
] || 'N/A'}
331-
</Typography>
312+
{mcpClientState.client.expectedConfigPath && (
313+
<>
314+
<Typography sx={{ fontWeight: 'bold' }}>
315+
Expected Config Path
316+
</Typography>
317+
<Typography
318+
component="pre"
319+
sx={{
320+
color: 'text.primary',
321+
fontFamily: 'monospace',
322+
whiteSpace: 'nowrap',
323+
overflow: 'auto',
324+
backgroundColor: 'background.default',
325+
padding: 1,
326+
borderRadius: 1,
327+
fontSize: '12px',
328+
}}
329+
>
330+
{mcpClientState.client.expectedConfigPath?.[
331+
client.host.platform as 'win32' | 'darwin' | 'linux'
332+
] || 'N/A'}
333+
</Typography>
334+
</>
335+
)}
332336
<Typography sx={{ fontWeight: 'bold' }}>
333337
Manual configuration
334338
</Typography>

0 commit comments

Comments
 (0)