From 86af4f6cb36115f983e09534c763b31d468e8ae0 Mon Sep 17 00:00:00 2001 From: sandeepa-kv-jois <64277898+sandeepa-kv-jois@users.noreply.github.com> Date: Thu, 15 Aug 2024 20:03:48 -0700 Subject: [PATCH] Update useProjectSlugEntity.tsx --- plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx b/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx index b20d68e..734d66a 100644 --- a/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx +++ b/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx @@ -31,7 +31,7 @@ export const useProjectSlugFromEntity = ( ); serviceUrlMatch = match( - '(.*)/account/:accountId/module/:module/orgs/:orgId/projects/:projectId/services/:serviced?(.*)', + '(.*)/account/:accountId/module/:module/orgs/:orgId/projects/:projectId/services/:serviceId?(.*)', { decode: decodeURIComponent, }, @@ -45,7 +45,7 @@ export const useProjectSlugFromEntity = ( ); serviceUrlMatch = match( - '(.*)/account/:accountId/all/orgs/:orgId/projects/:projectId/services/:serviced?(.*)', + '(.*)/account/:accountId/all/orgs/:orgId/projects/:projectId/services/:serviceId?(.*)', { decode: decodeURIComponent, }, @@ -59,7 +59,7 @@ export const useProjectSlugFromEntity = ( ); serviceUrlMatch = match( - '(.*)/account/:accountId/:module/orgs/:orgId/projects/:projectId/services/:serviced?(.*)', + '(.*)/account/:accountId/:module/orgs/:orgId/projects/:projectId/services/:serviceId?(.*)', { decode: decodeURIComponent, },