This commit is contained in:
Ishaan Jaffer 2026-02-11 19:43:22 -08:00
parent fa11ca3fb0
commit 3ab8944104

View file

@ -201,9 +201,11 @@ export function LogDetailsDrawer({
const handleCopyLeftPanelId = async () => {
if (!leftPanelId) return;
await navigator.clipboard.writeText(leftPanelId);
setCopiedLeftPanelId(true);
setTimeout(() => setCopiedLeftPanelId(false), 1200);
try {
await navigator.clipboard.writeText(leftPanelId);
setCopiedLeftPanelId(true);
setTimeout(() => setCopiedLeftPanelId(false), 1200);
} catch { /* clipboard unavailable in non-secure contexts */ }
};
if (!currentLog) return null;