Skip to content

Commit e316768

Browse files
committed
copy nothing if undefined
1 parent d982511 commit e316768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/dataPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function DataPanel({ obj, setObj, url }: Props) {
7474
<button
7575
className="flex items-center gap-2 p-2"
7676
title="Copy src to clipboard"
77-
onClick={() => navigator.clipboard.writeText(obj.src)}
77+
onClick={() => navigator.clipboard.writeText(obj.src || "")}
7878
>
7979
<Copy color="white" />
8080
Copy

0 commit comments

Comments
 (0)