Skip to content

Commit 4d9b78b

Browse files
authored
Update EditorComponent.js
1 parent 1c74d76 commit 4d9b78b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/EditorComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ function EditorComponent() {
386386
return;
387387
}
388388

389-
const outputText = outputToText(output);
389+
const outputText = Array.isArray(output) ? output.join("\n") : output.toString();
390390
try {
391391
await navigator.clipboard.writeText(outputText);
392392
enqueueSnackbar("Output copied to clipboard!", { variant: "success" });

0 commit comments

Comments
 (0)