Filter out "kept" from the discarded reasons list

This commit is contained in:
Arnaud_Cayrol 2026-02-15 20:07:26 +01:00
parent 7b8099f59d
commit 6197a1ce75

View file

@ -91,7 +91,7 @@
// Filter to only show non-zero counts, exclude the 'total' field
let skipReasons = $derived(
Object.entries(displaySkipStats)
.filter(([key, count]) => key !== 'total' && typeof count === 'number' && count > 0)
.filter(([key, count]) => key !== 'total' && key !== 'kept' && typeof count === 'number' && count > 0)
.map(([key, count]) => ({ label: formatLabel(key), count }))
.sort((a, b) => b.count - a.count) // Sort by count descending
);