Skip to content

Commit 50cdde7

Browse files
MDA2AVclaude
andcommitted
Fallback: compute unscored from results when summary field is missing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 270fe6b commit 50cdde7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/static/probe/render.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ window.ProbeRender = (function () {
254254
}
255255
html += '</div>';
256256
// Score: pass + warn [fail] [unscored] / total
257-
var unscored = s.unscored || 0;
257+
var unscored = s.unscored != null ? s.unscored
258+
: sv.results ? sv.results.filter(function (r) { return r.scored === false; }).length
259+
: 0;
258260
html += '<div style="min-width:200px;text-align:right;font-size:13px;">';
259261
html += '<span style="font-weight:700;color:' + PASS_BG + ';">' + s.passed + '</span>';
260262
if (warnings > 0) {

0 commit comments

Comments
 (0)