ai-chatbot
ai-chatbot copied to clipboard
Error: chat?.title.slice is not a function
Issue Description
Starting a chat conversation and using a single digit as a beginning.
Error Message:
Uncaught TypeError: chat?.title.slice is not a function
Issue Summary:
When executing the code chat?.title.slice(0,50), it throws an uncaught type error. The error occurs because the variable chat?.title is not a string and therefore, the slice function cannot be called.
Steps to Reproduce:
- Initiating a chat conversation by using a single digit as the starting point. For example, begin the conversation with
1. - Access the "chat history" and locate the chat labeled as
1, then click on it.
Environment:
- Operating System: macOS
- Browser: Chrome