From 9e3237da38a398c3ac651f539ef0e6de002a3b7b Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Tue, 19 Aug 2025 21:55:57 +0700 Subject: [PATCH] fix: downloaded model hub screen should from variant level instead of the model level --- web-app/src/routes/hub/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web-app/src/routes/hub/index.tsx b/web-app/src/routes/hub/index.tsx index c58fa3169..ffacd2f04 100644 --- a/web-app/src/routes/hub/index.tsx +++ b/web-app/src/routes/hub/index.tsx @@ -146,13 +146,14 @@ function Hub() { } // Apply downloaded filter if (showOnlyDownloaded) { - filtered = filtered?.filter((model) => - model.quants.some((variant) => + filtered = filtered?.map((model) => ({ + ...model, + quants: model.quants.filter((variant) => llamaProvider?.models.some( (m: { id: string }) => m.id === variant.model_id ) ) - ) + })).filter((model) => model.quants.length > 0) } // Add HuggingFace repo at the beginning if available if (huggingFaceRepo) {