From: Philippe Perrin Date: Tue, 17 May 2022 07:05:33 +0000 (+0200) Subject: SONAR-16365 Add support for rule's description default section X-Git-Tag: 9.5.0.56709~129 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8272f711e832400e6e567431c2f1356bedfb9168;p=sonarqube.git SONAR-16365 Add support for rule's description default section --- 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 a9fa8cdb795..2799bc26383 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 @@ -33,11 +33,12 @@ import { import RemoveExtendedDescriptionModal from './RemoveExtendedDescriptionModal'; const SECTION_ORDER: Dict = { - [RuleDescriptionSections.INTRODUCTION]: 0, - [RuleDescriptionSections.ROOT_CAUSE]: 1, - [RuleDescriptionSections.ASSESS_THE_PROBLEM]: 2, - [RuleDescriptionSections.HOW_TO_FIX]: 3, - [RuleDescriptionSections.RESOURCES]: 4 + [RuleDescriptionSections.DEFAULT]: 0, + [RuleDescriptionSections.INTRODUCTION]: 1, + [RuleDescriptionSections.ROOT_CAUSE]: 2, + [RuleDescriptionSections.ASSESS_THE_PROBLEM]: 3, + [RuleDescriptionSections.HOW_TO_FIX]: 4, + [RuleDescriptionSections.RESOURCES]: 5 }; interface Props {