Prechádzať zdrojové kódy

Merge pull request #1132 from porter-dev/expandedchart-error-hotfix

Expandedchart error hotfix
jusrhee 4 rokov pred
rodič
commit
f2415d5f19

+ 4 - 5
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

@@ -378,14 +378,13 @@ const ExpandedChart: React.FC<Props> = (props) => {
                   <Spinner src={loadingSrc} /> This application is currently
                   being deployed
                 </Header>
-                Navigate to the
-                <A
-                  href={`https://github.com/${props.currentChart.git_action_config.git_repo}/actions`}
+                Navigate to the <A
+                  href={props.currentChart.git_action_config && `https://github.com/${props.currentChart.git_action_config?.git_repo}/actions`}
                   target={"_blank"}
                 >
-                  Actions tab
+                  Actions
                 </A>{" "}
-                of your GitHub repo to view live build logs.
+                tab of your GitHub repo to view live build logs.
               </TextWrap>
             </Placeholder>
           );