From bd705ed77db5d1cde79f565ce55c220314bca516 Mon Sep 17 00:00:00 2001 From: tulsiojha Date: Fri, 29 Nov 2024 07:53:45 +0000 Subject: [PATCH] fixed code editor issue --- .../helm-chart+/$helmchart+/settings+/values/route.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apps/console/routes/_main+/$account+/env+/$environment+/workloads+/helm-chart+/$helmchart+/settings+/values/route.tsx b/src/apps/console/routes/_main+/$account+/env+/$environment+/workloads+/helm-chart+/$helmchart+/settings+/values/route.tsx index c578a5e6c..7a9b8f319 100644 --- a/src/apps/console/routes/_main+/$account+/env+/$environment+/workloads+/helm-chart+/$helmchart+/settings+/values/route.tsx +++ b/src/apps/console/routes/_main+/$account+/env+/$environment+/workloads+/helm-chart+/$helmchart+/settings+/values/route.tsx @@ -11,6 +11,7 @@ import { useEffect, useRef } from 'react'; import { LoadingPlaceHolder } from '~/console/components/loading'; import Yup from '~/root/lib/server/helpers/yup'; import { DISCARD_ACTIONS, useUnsavedChanges } from '~/root/lib/client/hooks/use-unsaved-changes'; +import { parseName } from '~/console/server/r-utils/common'; const SettingValues = () => { @@ -130,15 +131,15 @@ const SettingValues = () => { if ( values.activeTab === 'values' && - path === '/values.yaml' + path === `/${parseName(readOnlyHelmChart)}-values.yaml` ) { handleChange('values')(dummyEvent(e)); } }} path={ values.activeTab === 'defaults' - ? 'defaults.yaml' - : 'values.yaml' + ? `${parseName(readOnlyHelmChart)}-defaults.yaml` + : `${parseName(readOnlyHelmChart)}-values.yaml` } onMount={(e) => { editorRef.current = e;