diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2020-09-15 10:12:47 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-09-18 20:07:12 +0000 |
commit | 36b911c2beb62d63067f6c8a0d255ff42182ea9f (patch) | |
tree | 2ab53c3f380d474deeb5fc66d014784454bd809f | |
parent | 2545e06845915284dfcacc23ed857a5f0cc2e5ab (diff) | |
download | sonarqube-36b911c2beb62d63067f6c8a0d255ff42182ea9f.tar.gz sonarqube-36b911c2beb62d63067f6c8a0d255ff42182ea9f.zip |
SONAR-13857 Fix Security Review facet on new code
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx b/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx index b92e20b1e66..cbea6dc94c9 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx @@ -140,7 +140,7 @@ export default function PageSidebar(props: PageSidebarProps) { {...facetProps} className="leak-facet-box" facet={getFacet(facets, 'new_security_review_rating')} - property="new_security_review_rating" + property="new_security_review" value={query.new_security_review_rating} /> <NewMaintainabilityFilter diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap index ac6904b4bc7..748cc246cbb 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap @@ -28,7 +28,7 @@ exports[`should render \`leak\` view correctly 1`] = ` <SecurityReviewFilter className="leak-facet-box" onQueryChange={[MockFunction]} - property="new_security_review_rating" + property="new_security_review" /> <NewMaintainabilityFilter onQueryChange={[MockFunction]} @@ -92,7 +92,7 @@ exports[`should render \`leak\` view correctly with no applications 1`] = ` <SecurityReviewFilter className="leak-facet-box" onQueryChange={[MockFunction]} - property="new_security_review_rating" + property="new_security_review" /> <NewMaintainabilityFilter onQueryChange={[MockFunction]} |