]> source.dussan.org Git - sonarqube.git/commitdiff
fix global & organization issues page
authorStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 25 Aug 2017 07:22:40 +0000 (09:22 +0200)
committerJanos Gyerik <janos.gyerik@sonarsource.com>
Tue, 12 Sep 2017 09:34:52 +0000 (11:34 +0200)
server/sonar-web/src/main/js/apps/issues/components/App.js

index 486ee33abc0fced5993b2350422557801201894c..a67b66722cfdc574e5860380cba8b5f3127fdd15 100644 (file)
@@ -810,7 +810,7 @@ export default class App extends React.PureComponent {
       <div>
         {paging.total > 0 &&
           <IssuesList
-            branch={getBranchName(branch)}
+            branch={this.props.branch && getBranchName(branch)}
             checked={this.state.checked}
             component={component}
             issues={issues}
@@ -873,7 +873,7 @@ export default class App extends React.PureComponent {
                 {openIssue != null
                   ? <div className="pull-left width-60">
                       <ComponentBreadcrumbs
-                        branch={getBranchName(this.props.branch)}
+                        branch={this.props.branch && getBranchName(this.props.branch)}
                         component={component}
                         issue={openIssue}
                         organization={this.props.organization}