We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c964ff5 commit 8b31f49Copy full SHA for 8b31f49
client/src/components/JsonView.tsx
@@ -63,7 +63,7 @@ const JsonView = memo(
63
64
const handleCopy = useCallback(() => {
65
try {
66
- navigator.clipboard.writeText(JSON.stringify(normalizedData, null, 2));
+ navigator.clipboard.writeText(typeof normalizedData === "string" ? normalizedData : JSON.stringify(normalizedData, null, 2));
67
setCopied(true);
68
} catch (error) {
69
toast({
0 commit comments