Browse Source

Merge pull request #16853 from yuliang615/dev

Fix:Copy button in code blocks copies the original AI output instead of the edited content
Tim Jaeryang Baek 1 month ago
parent
commit
1dc8056d84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/Messages/CodeBlock.svelte

+ 1 - 1
src/lib/components/chat/Messages/CodeBlock.svelte

@@ -84,7 +84,7 @@
 
 	const copyCode = async () => {
 		copied = true;
-		await copyToClipboard(code);
+		await copyToClipboard(_code);
 
 		setTimeout(() => {
 			copied = false;