fix(git): stacks deployed version [EE-6346] (#10852)

Co-authored-by: testa113 <testa113>
pull/10745/merge
Ali 2023-12-15 16:55:39 +13:00 committed by GitHub
parent 0ddf84638f
commit d98fc1238e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { isExternalStack } from '@/react/docker/stacks/view-models/utils';
import { cleanGitRepoUrl } from '@/react/portainer/gitops/utils';
import { columnHelper } from './helper';
@ -23,7 +24,9 @@ export const deployedVersion = columnHelper.accessor(
<div className="text-center">
<a
target="_blank"
href={`${item.GitConfig.URL}/commit/${item.GitConfig.ConfigHash}`}
href={`${cleanGitRepoUrl(item.GitConfig.URL)}/commit/${
item.GitConfig.ConfigHash
}`}
rel="noreferrer"
>
{item.GitConfig.ConfigHash.slice(0, 7)}