Skip to content

Commit 8b31f49

Browse files
fix unkown type.
1 parent c964ff5 commit 8b31f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/JsonView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const JsonView = memo(
6363

6464
const handleCopy = useCallback(() => {
6565
try {
66-
navigator.clipboard.writeText(JSON.stringify(normalizedData, null, 2));
66+
navigator.clipboard.writeText(typeof normalizedData === "string" ? normalizedData : JSON.stringify(normalizedData, null, 2));
6767
setCopied(true);
6868
} catch (error) {
6969
toast({

0 commit comments

Comments
 (0)