Fix: Deleting temporary chat resulted in an error. (#17694)

This commit is contained in:
balibabu
2026-08-03 11:49:12 +08:00
committed by GitHub
parent 8353fc7855
commit 5aa60cbb67
3 changed files with 12 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import { currentReg, parseCitationIndex } from '@/utils/chat';
export const extractNumbersFromMessageContent = (content: string) => {
const matches = content.match(currentReg);
const matches = content?.match(currentReg);
if (matches) {
const list = matches
.map((match) => {