diff --git a/src/app/(main)/project/[project_id]/page.tsx b/src/app/(main)/project/[project_id]/page.tsx index 3348b482..4c3f4baf 100644 --- a/src/app/(main)/project/[project_id]/page.tsx +++ b/src/app/(main)/project/[project_id]/page.tsx @@ -85,6 +85,7 @@ export default function Chat(params: { params: { project_id: string } }) { { retry: false, onSuccess: async (data, vars) => { + if (!data) return; setChatID(data.external_id); await queryClient.invalidateQueries(["chats"]); setIsTyping(false);