mirror of https://github.com/portainer/portainer
fix(git): stacks deployed version [EE-6346] (#10852)
Co-authored-by: testa113 <testa113>pull/10745/merge
parent
0ddf84638f
commit
d98fc1238e
|
@ -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)}
|
||||
|
|
Loading…
Reference in New Issue