web ui: fix issue causing no entries

We weren't correctly handling all possible events from the heuristics
list
This commit is contained in:
Will Greenberg
2025-03-25 15:36:43 -07:00
committed by Cooper Quintin
parent 9af8e006b0
commit 2080cd7845

View File

@@ -80,10 +80,12 @@ async function updateEntryAnalysisResult(entry) {
entry.analysis_result = `0 warnings!`;
} else {
entry.analysis_result = `!!! ${entry.analysis.warnings.length} warnings !!!`;
for(warning of entry.analysis.warnings){
msg = `${warning.timestamp}: ${warning.warning.events[1].message}`
console.log(msg)
entry.analysis_result += `<br>${msg}`
for (const warning of entry.analysis.warnings) {
for (const event of warning.events) {
if (event === null) continue;
msg = `${warning.timestamp}: ${event.message}`
entry.analysis_result += `<br>${msg}`
}
}
}
}