1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

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

Co-authored-by: testa113 <testa113>
This commit is contained in:
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

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)}