Skip to content

Commit 0ae2b7e

Browse files
authored
Merge branch 'main' into greg/add_null_support_to_tools
2 parents 3adddfb + f013291 commit 0ae2b7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/components/JsonView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const JsonView = memo(
5252
variant: "destructive",
5353
});
5454
}
55-
}, [toast, normalizedData]);
55+
}, [toast, normalizedData, setCopied]);
5656

5757
return (
5858
<div className={clsx("p-4 border rounded relative", className)}>

client/src/lib/hooks/useCopy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function useCopy({ timeout = 500 }: UseCopyProps = {}) {
2121
clearTimeout(timeoutId);
2222
}
2323
};
24-
}, [copied]);
24+
}, [copied, timeout]);
2525

2626
return { copied, setCopied };
2727
}

0 commit comments

Comments
 (0)