fix: prevent content loss when re-clicking active document (#1274)
This commit is contained in:
parent
d366de3c86
commit
c3bc60730f
1 changed files with 3 additions and 3 deletions
|
|
@ -55,15 +55,15 @@ function PureDocumentToolResult({
|
||||||
height: rect.height,
|
height: rect.height,
|
||||||
};
|
};
|
||||||
|
|
||||||
setArtifact({
|
setArtifact((currentArtifact) => ({
|
||||||
documentId: result.id,
|
documentId: result.id,
|
||||||
kind: result.kind,
|
kind: result.kind,
|
||||||
content: "",
|
content: currentArtifact.content,
|
||||||
title: result.title,
|
title: result.title,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
status: "idle",
|
status: "idle",
|
||||||
boundingBox,
|
boundingBox,
|
||||||
});
|
}));
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue