ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Error: chat?.title.slice is not a function

Open tsui66 opened this issue 2 years ago • 0 comments

Issue Description

Starting a chat conversation and using a single digit as a beginning. image

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:

  1. Initiating a chat conversation by using a single digit as the starting point. For example, begin the conversation with 1.
  2. Access the "chat history" and locate the chat labeled as 1, then click on it.

Environment:

  • Operating System: macOS
  • Browser: Chrome

tsui66 avatar Jun 18 '23 09:06 tsui66