Skip to content

Commit 6ecc1c6

Browse files
authored
fix: The dialogue prompt is incorrect (#2197)
1 parent be27e15 commit 6ecc1c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/api/type/application.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ export class ChatRecordManage {
388388
(item) => item.length == 1 && item[0].content == '',
389389
'index'
390390
)
391+
if (set_index <= -1) {
392+
set_index = 0
393+
}
391394
this.chat.answer_text_list[set_index] = [
392395
{
393396
content: answer_text_block,

0 commit comments

Comments
 (0)