|
|
@@ -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"
|