mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-20 04:30:17 +09:00
add null check for search content
This commit is contained in:
parent
e3f499be0c
commit
b84bb72e07
@ -36,6 +36,7 @@ export function SearchChatPage() {
|
||||
|
||||
session.messages.forEach((message) => {
|
||||
const content = message.content as string;
|
||||
if (!content.toLowerCase || content === "") return;
|
||||
const lowerCaseContent = content.toLowerCase();
|
||||
|
||||
// full text search
|
||||
|
Loading…
Reference in New Issue
Block a user