Skip to content

Commit 6cf9109

Browse files
authored
fix: Dialogue embedding to modify name (#2780)
1 parent 678a5ae commit 6cf9109

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ui/src/views/chat/embed/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,8 @@ function editName(val: string, item: any) {
179179
const obj = {
180180
abstract: val
181181
}
182-
183182
log.asyncPutChatClientLog(applicationDetail.value.id, item.id, obj, loading).then(() => {
184-
const find = chatLogData.value.find((item: any) => item.id == item.id)
183+
const find = chatLogData.value.find((row: any) => row.id === item.id)
185184
if (find) {
186185
find.abstract = val
187186
}

ui/src/views/chat/mobile/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function editName(val: string, item: any) {
176176
}
177177
178178
log.asyncPutChatClientLog(applicationDetail.value.id, item.id, obj, loading).then(() => {
179-
const find = chatLogData.value.find((item: any) => item.id == item.id)
179+
const find = chatLogData.value.find((row: any) => row.id === item.id)
180180
if (find) {
181181
find.abstract = val
182182
}

0 commit comments

Comments
 (0)