Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: filter downloaded model

Faisal Amiraec7d3e220d1
diff --git a/web-app/src/containers/DownloadButton.tsx b/web-app/src/containers/DownloadButton.tsx
index 9e1912f69..37601ba42 100644
--- a/web-app/src/containers/DownloadButton.tsx
+++ b/web-app/src/containers/DownloadButton.tsx
@@ -65,10 +65,8 @@ export function DownloadButtonPlaceholder({
m.id === modelId ||
m.id === `${model.developer}/${sanitizeModelId(modelId)}`
)
- if (isDownloaded) {
- setDownloaded(true)
- }
- }, [llamaProvider])
+ setDownloaded(!!isDownloaded)
+ }, [llamaProvider, modelId, model.developer])
useEffect(() => {
events.on(