Browse Source

fix(ui): Don't show chart labels when loading in releaseAdoption (#35025)

Evan Purkhiser 2 years ago
parent
commit
d3dafb6f88
1 changed files with 17 additions and 15 deletions
  1. 17 15
      static/app/views/releases/detail/overview/sidebar/releaseAdoption.tsx

+ 17 - 15
static/app/views/releases/detail/overview/sidebar/releaseAdoption.tsx

@@ -260,22 +260,24 @@ function ReleaseAdoption({
         </SidebarSection>
       )}
       <RelativeBox>
-        <ChartLabel top="0px">
-          <ChartTitle
-            title={t('Sessions Adopted')}
-            icon={
-              <QuestionTooltip
-                position="top"
-                title={t(
-                  'Adoption compares the sessions of a release with the total sessions for this project.'
-                )}
-                size="sm"
-              />
-            }
-          />
-        </ChartLabel>
+        {!loading && (
+          <ChartLabel top="0px">
+            <ChartTitle
+              title={t('Sessions Adopted')}
+              icon={
+                <QuestionTooltip
+                  position="top"
+                  title={t(
+                    'Adoption compares the sessions of a release with the total sessions for this project.'
+                  )}
+                  size="sm"
+                />
+              }
+            />
+          </ChartLabel>
+        )}
 
-        {hasUsers && (
+        {!loading && hasUsers && (
           <ChartLabel top="140px">
             <ChartTitle
               title={t('Users Adopted')}