mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
UI fix
This commit is contained in:
parent
fa11ca3fb0
commit
3ab8944104
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue