diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2022-05-11 18:01:31 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-05-13 20:02:49 +0000 |
commit | d916489b37b0473728cf1f8ef6eeac4ff0307bd9 (patch) | |
tree | 236bcd11dbb3914e05191506ef87baacf23e6540 /server/sonar-web/src/main/js | |
parent | e8193d6d48b191dc114bce8146c629e508a1a235 (diff) | |
download | sonarqube-d916489b37b0473728cf1f8ef6eeac4ff0307bd9.tar.gz sonarqube-d916489b37b0473728cf1f8ef6eeac4ff0307bd9.zip |
SONAR-16365 Fix rule description section ordering
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx | 4 |
1 files 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<Props, S sortedDescriptionSections(ruleDetails: RuleDetails) { return sortBy( - ruleDetails.descriptionSections, - s => SECTION_ORDER[s.key] || Object.keys(SECTION_ORDER).length + ruleDetails.descriptionSections?.filter(section => SECTION_ORDER[section.key] !== undefined), + s => SECTION_ORDER[s.key] ); } |