Spaces:
Paused
Paused
CrispStrobe commited on
Commit ·
2925d9f
1
Parent(s): 65c9c54
fix: explicit type for cap parameter to resolve TS7006
Browse files- src/App.tsx +1 -1
src/App.tsx
CHANGED
|
@@ -596,7 +596,7 @@ function App() {
|
|
| 596 |
{model.type === 'embedding' && (
|
| 597 |
<span className="cap-badge cap-embedding" title="embedding">{CAP_ICON.embedding}</span>
|
| 598 |
)}
|
| 599 |
-
{(model.capabilities || []).map(cap => (
|
| 600 |
<span key={cap} className={`cap-badge cap-${cap}`} title={cap}>{CAP_ICON[cap] ?? cap}</span>
|
| 601 |
))}
|
| 602 |
</td>
|
|
|
|
| 596 |
{model.type === 'embedding' && (
|
| 597 |
<span className="cap-badge cap-embedding" title="embedding">{CAP_ICON.embedding}</span>
|
| 598 |
)}
|
| 599 |
+
{(model.capabilities || []).map((cap: string) => (
|
| 600 |
<span key={cap} className={`cap-badge cap-${cap}`} title={cap}>{CAP_ICON[cap] ?? cap}</span>
|
| 601 |
))}
|
| 602 |
</td>
|