Update web-app/src/containers/DropdownModelProvider.tsx

Co-authored-by: Louis <louis@jan.ai>
This commit is contained in:
Faisal Amir 2025-08-05 12:37:19 +07:00
parent fb15687388
commit fea516f98f

View File

@ -241,9 +241,7 @@ const DropdownModelProvider = ({
// When not searching, exclude favorite models from regular provider sections
const isFavorite = favoriteModels.some((fav) => fav.id === item.model.id)
if (!searchValue && isFavorite) {
return // Skip adding this item to regular provider section
}
if (!searchValue && isFavorite) return // Skip adding this item to regular provider section
groups[providerKey].push(item)
})