From: Philippe Perrin Date: Wed, 11 May 2022 16:01:31 +0000 (+0200) Subject: SONAR-16365 Fix rule description section ordering X-Git-Tag: 9.5.0.56709~139 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d916489b37b0473728cf1f8ef6eeac4ff0307bd9;p=sonarqube.git SONAR-16365 Fix rule description section ordering --- 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] ); }