From d916489b37b0473728cf1f8ef6eeac4ff0307bd9 Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Wed, 11 May 2022 18:01:31 +0200 Subject: [PATCH] SONAR-16365 Fix rule description section ordering --- .../apps/coding-rules/components/RuleDetailsDescription.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx index 10aee08b32f..a9fa8cdb795 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx @@ -123,8 +123,8 @@ export default class RuleDetailsDescription extends React.PureComponent SECTION_ORDER[s.key] || Object.keys(SECTION_ORDER).length + ruleDetails.descriptionSections?.filter(section => SECTION_ORDER[section.key] !== undefined), + s => SECTION_ORDER[s.key] ); } -- 2.39.5