Commit a0508b0
web: guard ThreatMap against missing stats buckets
Handle absent byType/bySeverity in API responses to prevent runtime
Object.entries(undefined) crashes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3e6cae5 commit a0508b0
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments