Skip to content

Commit 91764ec

Browse files
committed
fix for manifest struct
1 parent 928eda3 commit 91764ec

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/CodeEditor/CodeEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ window.MonacoEnvironment = {
3737
const { yaml } = monaco.languages || {};
3838

3939

40-
interface InformationBarProps { text?: string; className?: string; children?: React.ReactNode }
40+
interface InformationBarProps { text: string; className?: string; children?: React.ReactNode }
4141

4242
interface CodeEditorInterface {
4343
value?: string;

src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetail.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function NodeDetailComponent({
117117
},
118118
)
119119
const _resourceContainers = []
120-
if (result?.manifest?.manifestResponse?.spec) {
120+
if (result?.manifestResponse?.manifest?.spec) {
121121
if (Array.isArray(result.manifest.spec.containers)) {
122122
_resourceContainers.push(
123123
...result.manifest.spec.containers.map((_container) => ({

src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/Manifest.component.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
EA_MANIFEST_SECRET_EDIT_MODE_INFO_TEXT,
2424
EA_MANIFEST_SECRET_INFO_TEXT,
2525
} from '../../../../../../config/constantMessaging'
26-
import { IS_NON_ADMIN_USER_DATA, MANIFEST_KEY_FIELDS, MODES } from '../../../../../../config'
26+
import { MODES } from '../../../../../../config'
2727
import { EMPTY_YAML_ERROR, SAVE_DATA_VALIDATION_ERROR_MSG } from '../../../../values/chartValuesDiff/ChartValuesView.constants'
2828
import { getDecodedEncodedSecretManifestData, getTrimmedManifestData } from '../nodeDetail.util'
2929

@@ -106,9 +106,9 @@ function ManifestComponent({
106106
])
107107
.then((response) => {
108108
let _manifest: string
109-
setSecretViewAccess(response[0]?.result?.manifest?.secretViewAccess || false)
110-
_manifest = JSON.stringify(response[0]?.result?.manifest?.manifestResponse)
111-
setDesiredManifest(response[1]?.result?.manifestResponse?.manifest || '')
109+
setSecretViewAccess(response[0]?.result?.secretViewAccess || false)
110+
_manifest = JSON.stringify(response[0]?.result?.manifestResponse?.manifest || '')
111+
setDesiredManifest(response[1]?.result?.manifest || '')
112112

113113
if (_manifest) {
114114
setManifest(_manifest)

0 commit comments

Comments
 (0)