Skip to content

Commit e9663eb

Browse files
author
linyuan.yang
committed
up
1 parent 0251321 commit e9663eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/chat-ui/src/components/ChatView.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ async function onUpdateConfig(field: string, value: unknown) {
379379
const id = activeSessionId.value
380380
if (!id) return
381381
try {
382-
await props.transport.updateSession(id, { [field]: value } as Partial<SessionItem>)
382+
const wireValue = value === undefined ? null : value
383+
await props.transport.updateSession(id, { [field]: wireValue } as Partial<SessionItem>)
383384
const s = sessions.value.find(s => s.id === id) as Record<string, unknown> | undefined
384385
if (s) s[field] = value
385386
} catch (e) {

0 commit comments

Comments
 (0)