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:
majdyz
2026-04-15 20:03:26 +07:00
parent a281e38620
commit 26b5f9958b

View File

@@ -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
}
>