akseljoonas HF Staff commited on
Commit
5969911
·
1 Parent(s): eeab0b4

fix: cast unknown to avoid TS2769 in sandbox approval UI

Browse files
frontend/src/components/Chat/ToolCallGroup.tsx CHANGED
@@ -111,8 +111,8 @@ function InlineApproval({
111
  <Box component="span" sx={{ fontWeight: 500, color: 'var(--text)' }}>
112
  {String(args.hardware || 'cpu-basic')}
113
  </Box>
114
- {args.private && (
115
- <Box component="span" sx={{ color: 'var(--muted-text)' }}> (private)</Box>
116
  )}
117
  </Typography>
118
  </Box>
 
111
  <Box component="span" sx={{ fontWeight: 500, color: 'var(--text)' }}>
112
  {String(args.hardware || 'cpu-basic')}
113
  </Box>
114
+ {!!args.private && (
115
+ <Box component="span" sx={{ color: 'var(--muted-text)' }}>{' (private)'}</Box>
116
  )}
117
  </Typography>
118
  </Box>