Skip to content

Commit

Permalink
fixed code editor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tulsiojha committed Nov 29, 2024
1 parent da72533 commit bd705ed
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bd705ed

Please sign in to comment.