Просмотр исходного кода

Merge pull request #1161 from porter-dev/hotfix/deploy-job-unknown-error

[Hotfix] Prevent error if git action config not found
abelanger5 4 лет назад
Родитель
Сommit
5c82addfe0

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedJobChart.tsx

@@ -442,7 +442,7 @@ class ExpandedJobChart extends Component<PropsType, StateType> {
                 </Header>
                 Navigate to the
                 <A
-                  href={`https://github.com/${this.props.currentChart.git_action_config.git_repo}/actions`}
+                  href={`https://github.com/${this.props.currentChart?.git_action_config?.git_repo}/actions`}
                   target={"_blank"}
                 >
                   Actions tab