From 0e59cf76ecb4547c6c416bcae5933fdab0ea1b2a Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:56:35 +1300 Subject: [PATCH] fix(gitops): correct commit hash link [EE-6346] (#10800) --- .../ItemView/EnvironmentsDatatable/columns.tsx | 9 +++++++-- .../edge-stacks/ListView/EdgeStacksDatatable/columns.tsx | 5 ++++- app/react/portainer/gitops/utils.ts | 7 +++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/columns.tsx b/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/columns.tsx index 094f873f6..c84abe341 100644 --- a/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/columns.tsx +++ b/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/columns.tsx @@ -9,6 +9,7 @@ import UpToDate from '@/assets/ico/icon_up-to-date.svg?c'; import { isoDateFromTimestamp } from '@/portainer/filters/filters'; import { isBE } from '@/react/portainer/feature-flags/feature-flags.service'; import { getDashboardRoute } from '@/react/portainer/environments/utils'; +import { cleanGitRepoUrl } from '@/react/portainer/gitops/utils'; import { Button } from '@@/buttons'; import { Icon } from '@@/Icon'; @@ -187,7 +188,9 @@ function TargetVersionCell({ {row.original.TargetCommitHash ? (