]> source.dussan.org Git - sonarqube.git/commitdiff
Fix facets' arrows on measures page
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 17 Aug 2017 07:58:01 +0000 (09:58 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 17 Aug 2017 14:42:34 +0000 (16:42 +0200)
server/sonar-web/src/main/js/apps/component-measures/sidebar/Sidebar.js
server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap

index 8163d5638bd7a6f7e085a6e3b4772b677bdc5263..1cf5fad085fc7510875d8c94965540289efed636 100644 (file)
@@ -89,7 +89,7 @@ export default class Sidebar extends React.PureComponent {
             domain={domain}
             onChange={this.changeMetric}
             onToggle={this.toggleFacet}
-            open={this.state.openFacets[domain.name]}
+            open={this.state.openFacets[domain.name] === true}
             selected={this.props.selectedMetric}
           />
         )}
index 96c4d1701a7fb5bed0e9c2dd29b21e4c45bbe71f..e4d5357f9c7d4865c3f3407bff48b8d02c67aed7 100644 (file)
@@ -51,6 +51,7 @@ exports[`should display two facets 1`] = `
     }
     onChange={[Function]}
     onToggle={[Function]}
+    open={false}
     selected="duplicated_lines_density"
   />
   <DomainFacet