Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#107293)

hermes-seaeye[bot]1603a073e46e
diff --git a/apps/desktop/src/app/shell/model-catalog-menu.tsx b/apps/desktop/src/app/shell/model-catalog-menu.tsx
index 83e22cec496..e8f24a44a63 100644
--- a/apps/desktop/src/app/shell/model-catalog-menu.tsx
+++ b/apps/desktop/src/app/shell/model-catalog-menu.tsx
@@ -347,11 +347,7 @@ export function ModelCatalogMenu({
: catalogProviderMatches(row.provider, current.provider) &&
(row.family.id === current.model || row.family.fastId === current.model)
- const autoIndex = q
- ? kbRows.length > 0
- ? 0
- : -1
- : kbRows.findIndex(row => rowIsCurrent(row))
+ const autoIndex = q ? (kbRows.length > 0 ? 0 : -1) : kbRows.findIndex(row => rowIsCurrent(row))
const kbIndex = kbOverride !== null && kbOverride < kbRows.length ? kbOverride : autoIndex
const kbActiveKey = kbIndex >= 0 ? kbRows[kbIndex].key : null