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(threads): avoid router invariant in PromptProgress (#8220)

Akarshan Biswas6a5e9eac87f3
diff --git a/web-app/src/components/PromptProgress.tsx b/web-app/src/components/PromptProgress.tsx
index 2b9666aaf..011538662 100644
--- a/web-app/src/components/PromptProgress.tsx
+++ b/web-app/src/components/PromptProgress.tsx
@@ -3,8 +3,8 @@ import { Loader } from 'lucide-react'
import { useParams } from '@tanstack/react-router'
export function PromptProgress() {
- const params = useParams({ from: '/threads/$threadId', shouldThrow: false })
- const threadId = params?.threadId
+ const params = useParams({ strict: false })
+ const threadId = (params as { threadId?: string })?.threadId
const promptProgress = useAppState((state) =>
(threadId ? state.promptProgresses[threadId] : undefined) ??
state.promptProgress