From 162db4be2932d8f0a25f63992c1da47c7d1169d3 Mon Sep 17 00:00:00 2001 From: ajmallesh Date: Thu, 27 Aug 2026 17:16:31 -0700 Subject: [PATCH] fix(report): drop the empty Critical Findings section from the PDF summary --- apps/worker/templates/typst/report.typ | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/worker/templates/typst/report.typ b/apps/worker/templates/typst/report.typ index d5e8a27f..87ab88ae 100644 --- a/apps/worker/templates/typst/report.typ +++ b/apps/worker/templates/typst/report.typ @@ -442,9 +442,11 @@ ] ] -== Critical Findings +#if s.criticalFindings.len() > 0 [ + == Critical Findings -#enum(..s.criticalFindings.map(f => [#inline-code(f)])) + #enum(..s.criticalFindings.map(f => [#inline-code(f)])) +] // ---------- FINDINGS OVERVIEW ----------------------------------------------- = Findings Overview