We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0b260 commit f984dbeCopy full SHA for f984dbe
service/src/chatgpt/index.ts
@@ -352,7 +352,9 @@ async function getMessageById(id: string): Promise<ChatMessage | undefined> {
352
: `prompt_${id}` // parent message is the prompt
353
354
if (chatInfo.status !== Status.Normal) { // jumps over deleted messages
355
- return getMessageById(parentMessageId)
+ return parentMessageId
356
+ ? getMessageById(parentMessageId)
357
+ : undefined
358
} else {
359
if (isPrompt) { // prompt
360
return {
0 commit comments