Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: missed code
markmehere1274cf909dc7
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsxindex 5c8f8a9cb..70a71aa3b 100644--- a/web-app/src/containers/ChatInput.tsx+++ b/web-app/src/containers/ChatInput.tsx@@ -1629,7 +1629,7 @@ const ChatInput = memo(function ChatInput({</span></DropdownMenuItem>{/* Use Assistant - only show when no projectId */}- {!projectId && (+ {!projectId && !initialMessage && (<DropdownMenuSub><DropdownMenuSubTrigger><IconUser size={18} className="text-muted-foreground" />diff --git a/web-app/src/services/threads/default.ts b/web-app/src/services/threads/default.tsindex f1e67e972..7549fd4e1 100644--- a/web-app/src/services/threads/default.ts+++ b/web-app/src/services/threads/default.ts@@ -18,10 +18,10 @@ export class DefaultThreadsService implements ThreadsService {// new String("id") !== "id"threads.forEach((e) => {- e.id = e.id.toString()+ if (e.id) e.id = e.id.toString()e.assistants?.forEach((a) => {- a.id = a.id.toString()- a.model.id = a.model.id.toString()+ if (a.id) a.id = a.id.toString()+ if (a.model) a.model.id = a.model.id.toString()})})diff --git a/web-app/src/utils/formatDate.ts b/web-app/src/utils/formatDate.tsindex 3ad6a9128..2de560a83 100644--- a/web-app/src/utils/formatDate.ts+++ b/web-app/src/utils/formatDate.ts@@ -18,6 +18,7 @@ export const formatDate = (// Time mode: short month + time, fixed UTC for stable output in testsreturn new Date(date).toLocaleString('en-US', {...base,+ timeZone: 'UTC',month: 'short',hour: 'numeric',minute: 'numeric',@@ -28,6 +29,7 @@ export const formatDate = (// Date-only mode: long month, no timezone adjustmentreturn new Date(date).toLocaleDateString('en-US', {...base,+ timeZone: 'UTC',month: 'long',})-}+}\ No newline at end of file