mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: exclude failed answer when sending messages (#9835)
This commit is contained in:
parent
18106a4fc6
commit
59a32aaae6
|
@ -24,7 +24,7 @@ function getProcessedInputsFromUrlParams(): Record<string, any> {
|
|||
function getLastAnswer(chatList: ChatItem[]) {
|
||||
for (let i = chatList.length - 1; i >= 0; i--) {
|
||||
const item = chatList[i]
|
||||
if (item.isAnswer && !item.isOpeningStatement)
|
||||
if (item.isAnswer && !item.id.startsWith('answer-placeholder-') && !item.isOpeningStatement)
|
||||
return item
|
||||
}
|
||||
return null
|
||||
|
|
Loading…
Reference in New Issue
Block a user