mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
fix(core): retry on chat-block, view components not update as expected (#11553)
Close [BS-3026](https://linear.app/affine-design/issue/BS-3026)
This commit is contained in:
@@ -334,6 +334,7 @@ export class AIChatBlockPeekView extends LitElement {
|
|||||||
const last = messages[messages.length - 1];
|
const last = messages[messages.length - 1];
|
||||||
if ('content' in last) {
|
if ('content' in last) {
|
||||||
last.content = '';
|
last.content = '';
|
||||||
|
last.id = '';
|
||||||
last.createdAt = new Date().toISOString();
|
last.createdAt = new Date().toISOString();
|
||||||
}
|
}
|
||||||
this.updateContext({ messages, status: 'loading', error: null });
|
this.updateContext({ messages, status: 'loading', error: null });
|
||||||
|
|||||||
Reference in New Issue
Block a user