Browse Source

fix(ui): Fix semver guides condition (#28597)

Matej Minar 3 years ago
parent
commit
d1f304cf68
1 changed files with 9 additions and 5 deletions
  1. 9 5
      static/app/views/releases/list/index.tsx

+ 9 - 5
static/app/views/releases/list/index.tsx

@@ -7,7 +7,7 @@ import pick from 'lodash/pick';
 import {fetchTagValues} from 'app/actionCreators/tags';
 import Feature from 'app/components/acl/feature';
 import Alert from 'app/components/alert';
-import GuideAnchorWrapper, {GuideAnchor} from 'app/components/assistant/guideAnchor';
+import GuideAnchor from 'app/components/assistant/guideAnchor';
 import EmptyStateWarning from 'app/components/emptyStateWarning';
 import LightWeightNoProjectMessage from 'app/components/lightWeightNoProjectMessage';
 import ExternalLink from 'app/components/links/externalLink';
@@ -552,9 +552,13 @@ class ReleasesList extends AsyncView<Props, State> {
             {this.renderHealthCta()}
 
             <SortAndFilterWrapper>
-              {hasSemver && hasReleasesSetup ? (
-                <GuideAnchor target="releases_search" position="bottom">
-                  <GuideAnchorWrapper
+              {hasSemver ? (
+                <GuideAnchor
+                  target="releases_search"
+                  position="bottom"
+                  disabled={!hasReleasesSetup}
+                >
+                  <GuideAnchor
                     target="release_stages"
                     position="bottom"
                     disabled={!showReleaseAdoptionStages}
@@ -569,7 +573,7 @@ class ReleasesList extends AsyncView<Props, State> {
                       onSearch={this.handleSearch}
                       onGetTagValues={this.getTagValues}
                     />
-                  </GuideAnchorWrapper>
+                  </GuideAnchor>
                 </GuideAnchor>
               ) : (
                 <SearchBar