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: linter

Louis7db941036cf9
diff --git a/web-app/src/containers/ProjectFiles.tsx b/web-app/src/containers/ProjectFiles.tsx
index ccff25417..005c78f02 100644
--- a/web-app/src/containers/ProjectFiles.tsx
+++ b/web-app/src/containers/ProjectFiles.tsx
@@ -126,7 +126,7 @@ export default function ProjectFiles({ projectId, lng }: ProjectFilesProps) {
} else {
setFiles([])
}
- } catch (error) {
+ } catch {
setFiles([])
} finally {
setLoading(false)
diff --git a/web-app/src/routes/threads/$threadId.tsx b/web-app/src/routes/threads/$threadId.tsx
index d5167ab89..8dcb387b9 100644
--- a/web-app/src/routes/threads/$threadId.tsx
+++ b/web-app/src/routes/threads/$threadId.tsx
@@ -298,7 +298,7 @@ function ThreadDetail() {
// Update RAG tools availability when documents, model, or tool availability changes
useEffect(() => {
const checkDocumentsAvailability = async () => {
- let hasThreadDocuments = Boolean(thread?.metadata?.hasDocuments)
+ const hasThreadDocuments = Boolean(thread?.metadata?.hasDocuments)
let hasProjectDocuments = false
// Check if thread belongs to a project and if that project has files