Wait for registered monitor error detail

This commit is contained in:
Codex
2026-07-08 07:56:34 +02:00
parent d500c59255
commit 7f8f9307a9
2 changed files with 6 additions and 3 deletions
@@ -430,12 +430,14 @@ createApp({
}
async function openCheckDetail(item) {
activeCheckItem.value = item || null;
detailCopyState.value = "";
const errorId = checkErrorId(item);
const runId = item?.latestRunId || item?.runId || item?.run?.id || selectedRunId.value || "";
if (runId) syncMonitorDeepLink(runId, "detail", errorId);
if (!errorId) return;
if (!errorId) {
activeCheckItem.value = item || null;
return;
}
try {
const payload = await fetchJson(`/api/errors/${encodeURIComponent(errorId)}`);
activeCheckItem.value = { ...item, ...(payload.finding || {}), errorId, detail: payload.detail || item.detail || null };