Browse Source

quick frontend fix with revision number (#4093)

Feroze Mohideen 2 years ago
parent
commit
4c0f30c5c7

+ 2 - 2
dashboard/src/main/home/app-dashboard/app-view/tabs/activity-feed/events/cards/ServiceStatusDetail.tsx

@@ -37,7 +37,7 @@ type Props = {
 const ServiceStatusDetail: React.FC<Props> = ({
   serviceDeploymentMetadata,
   revisionId,
-  revisionNumber,
+  revisionNumber = 0,
 }) => {
   const { latestClientServices, latestClientNotifications, tabUrlGenerator } =
     useLatestRevision();
@@ -116,7 +116,7 @@ const ServiceStatusDetail: React.FC<Props> = ({
                       <Spacer inline x={0.5} />
                     </>
                   )}
-                  {serviceType !== "job" && revisionNumber && (
+                  {serviceType !== "job" && revisionNumber !== 0 && (
                     <>
                       <Tag>
                         <Link