From 2addfca1b483c1763b5b60aed102bdc62ed88f35 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Mon, 10 Mar 2025 16:47:47 +0200 Subject: [PATCH] fix: code block component copying was working incorrectly (#62) --- web/src/components/CodeBlock.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/CodeBlock.tsx b/web/src/components/CodeBlock.tsx index 6f14f63..fd8a236 100644 --- a/web/src/components/CodeBlock.tsx +++ b/web/src/components/CodeBlock.tsx @@ -21,6 +21,8 @@ export function CodeBlock({ }; }; + const copyText = children instanceof Array ? children.join("") : children; + return (