Wait for registered monitor error detail
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user