Ivan Galakhov 4 سال پیش
والد
کامیت
dcd3dacf0d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      dashboard/src/main/home/cluster-dashboard/expanded-chart/RevisionSection.tsx

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

@@ -219,7 +219,7 @@ class RevisionSection extends Component<PropsType, StateType> {
   renderRevisionList = () => {
     return this.state.revisions.map((revision: ChartType, i: number) => {
       let isCurrent = revision.version === this.state.maxVersion;
-      const isGithubApp = !!this.props.chart.git_action_config;
+      const isGithubApp = !!this.props.chart.git_action_config || true;
       const imageTag = revision.config?.image?.tag;
 
       const parsedImageTag = isGithubApp
@@ -237,7 +237,7 @@ class RevisionSection extends Component<PropsType, StateType> {
           <Td>
             {!imageTag ? (
               "N/A"
-            ) : isGithubApp && /[0-9A-Fa-f]+/g.test(imageTag) ? (
+            ) : isGithubApp && /^[0-9A-Fa-f]+$/g.test(imageTag) ? (
               <A
                 href={`https://github.com/${this.props.chart.git_action_config?.git_repo}/commit/${imageTag}`}
                 target="_blank"