Bladeren bron

don't propagate event and fix styling

Ivan Galakhov 4 jaren geleden
bovenliggende
commit
e98762492d
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      dashboard/src/main/home/cluster-dashboard/expanded-chart/RevisionSection.tsx

+ 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>