From 8272f711e832400e6e567431c2f1356bedfb9168 Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Tue, 17 May 2022 09:05:33 +0200 Subject: [PATCH] SONAR-16365 Add support for rule's description default section --- .../components/RuleDetailsDescription.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 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 { -- 2.39.5