From 23f1a42df7e19e1fcf7f3976adfb8e6af6c48592 Mon Sep 17 00:00:00 2001 From: Rhys Howell Date: Thu, 21 Nov 2024 17:27:26 -0500 Subject: [PATCH] chore: update charts url instance name field COMPASS-5483 --- .../collection-header-actions/collection-header-actions.tsx | 2 +- packages/databases-collections-list/src/items-grid.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compass-collection/src/components/collection-header-actions/collection-header-actions.tsx b/packages/compass-collection/src/components/collection-header-actions/collection-header-actions.tsx index ff013eaa3f4..d3cc4c68ff8 100644 --- a/packages/compass-collection/src/components/collection-header-actions/collection-header-actions.tsx +++ b/packages/compass-collection/src/components/collection-header-actions/collection-header-actions.tsx @@ -28,7 +28,7 @@ function buildChartsUrl( const { database, collection } = toNS(namespace); const url = new URL(`/charts/${groupId}`, window.location.origin); url.searchParams.set('sourceType', 'cluster'); - url.searchParams.set('instanceName', clusterName); + url.searchParams.set('name', clusterName); url.searchParams.set('database', database); url.searchParams.set('collection', collection); return url.toString(); diff --git a/packages/databases-collections-list/src/items-grid.tsx b/packages/databases-collections-list/src/items-grid.tsx index c94230cb2dd..704cd98165a 100644 --- a/packages/databases-collections-list/src/items-grid.tsx +++ b/packages/databases-collections-list/src/items-grid.tsx @@ -128,7 +128,7 @@ function buildChartsUrl( const { database } = toNS(namespace ?? ''); const url = new URL(`/charts/${groupId}`, window.location.origin); url.searchParams.set('sourceType', 'cluster'); - url.searchParams.set('instanceName', clusterName); + url.searchParams.set('name', clusterName); if (database) { url.searchParams.set('database', database); }