add null check for search content

This commit is contained in:
heweikang 2024-08-17 10:06:56 +08:00
parent e3f499be0c
commit b84bb72e07
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export function SearchChatPage() {
session.messages.forEach((message) => { session.messages.forEach((message) => {
const content = message.content as string; const content = message.content as string;
if (!content.toLowerCase || content === "") return;
const lowerCaseContent = content.toLowerCase(); const lowerCaseContent = content.toLowerCase();
// full text search // full text search