Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

chore: another hotfix patch on getConvoTitle

Daniel Avila0b75d5d6fe9c
diff --git a/api/models/Conversation.js b/api/models/Conversation.js
index f4385f5c72..bc25b3f57d 100644
--- a/api/models/Conversation.js
+++ b/api/models/Conversation.js
@@ -198,7 +198,8 @@ module.exports = {
if (convo && !convo.title) {
return null;
} else {
- return convo.title;
+ // TypeError: Cannot read properties of null (reading 'title')
+ return convo?.title || 'New Chat';
}
} catch (error) {
console.log(error);