refactor admin navigation; update links to ingest pages and improve loading of data in parallel
This commit is contained in:
@@ -586,7 +586,8 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
applyGraphFilters();
|
||||
});
|
||||
|
||||
const ok = await loadIntelStatsRow();
|
||||
if (!ok) return;
|
||||
loadIntelGraph();
|
||||
// both calls are independent — run them concurrently. the graph
|
||||
// endpoint returns empty nodes/edges when intelligence db is missing
|
||||
// so we dont need to gate on the stats check.
|
||||
Promise.all([loadIntelStatsRow(), loadIntelGraph()]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user