mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-16 17:11:58 +00:00
aad4b13cab
For compliances like RBI that have a flat structure (requirements directly in framework without categories/sections), the Top Failed Sections chart was showing empty because the logic only iterated over framework.categories. This fix: - Detects flat structure compliances (framework.requirements without categories) - Shows 'Top Failed Requirements' for flat structures - Keeps 'Top Failed Sections' for hierarchical structures (like ENS) - Updates getTopFailedSections to return TopFailedResult with type metadata - Adds dynamic title to TopFailedSectionsCard component