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

don't propagate event and fix styling

Ivan Galakhov 4 лет назад
Родитель
Сommit
e98762492d

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

@@ -239,8 +239,11 @@ class RevisionSection extends Component<PropsType, StateType> {
               "N/A"
             ) : isGithubApp && /[0-9A-Fa-f]{6}/g.test(parsedImageTag) ? (
               <A
-                href={`https://github.com/${this.props.chart.git_action_config.git_repo}/commit/${imageTag}`}
+                href={`https://github.com/${this.props.chart.git_action_config?.git_repo}/commit/${imageTag}`}
                 target="_blank"
+                onClick={(e) => {
+                  e.stopPropagation();
+                }}
               >
                 {parsedImageTag}
               </A>