chore: update filter hub while searching

This commit is contained in:
Faisal Amir 2025-08-25 16:51:30 +07:00
parent e73a710c06
commit e376314315

View File

@ -394,13 +394,13 @@ function Hub() {
)
}
}, [
localDownloadingModels,
downloadProcesses,
llamaProvider?.models,
isRecommendedModel,
downloadButtonRef,
localDownloadingModels,
addLocalDownloadingModel,
t,
addLocalDownloadingModel,
huggingfaceToken,
handleUseModel,
])
@ -477,9 +477,9 @@ function Hub() {
const isLastStep = currentStepIndex === steps.length - 1
const renderFilter = () => {
if (searchValue.length === 0)
return (
<>
{searchValue.length === 0 && (
<DropdownMenu>
<DropdownMenuTrigger>
<span className="flex cursor-pointer items-center gap-1 px-2 py-1 rounded-sm bg-main-view-fg/15 text-sm outline-none text-main-view-fg font-medium">
@ -504,6 +504,7 @@ function Hub() {
))}
</DropdownMenuContent>
</DropdownMenu>
)}
<div className="flex items-center gap-2">
<Switch
checked={showOnlyDownloaded}