mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
fix(frontend): add .catch to clipboard writeText in LogsTable exec ID cell
Unhandled promise rejections can occur if clipboard API fails (permissions or browser restrictions). Silently swallow the error — admin table copy is best-effort and the truncated ID is still visible in the cell.
This commit is contained in:
@@ -128,10 +128,11 @@ function LogsTable({
|
||||
}
|
||||
onClick={
|
||||
log.graph_exec_id
|
||||
? () =>
|
||||
navigator.clipboard.writeText(
|
||||
String(log.graph_exec_id),
|
||||
)
|
||||
? () => {
|
||||
navigator.clipboard
|
||||
.writeText(String(log.graph_exec_id))
|
||||
.catch(() => {});
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user