diff --git a/frontend/providers/applaunchpad/src/constants/editApp.ts b/frontend/providers/applaunchpad/src/constants/editApp.ts index 9b19828fbfc..238f68b741f 100644 --- a/frontend/providers/applaunchpad/src/constants/editApp.ts +++ b/frontend/providers/applaunchpad/src/constants/editApp.ts @@ -23,6 +23,7 @@ export const editModeMap = (isEdit: boolean) => { }; export const defaultEditVal: AppEditType = { + kind: 'deployment', appName: 'hello-world', imageName: 'nginx', runCMD: '', @@ -58,6 +59,7 @@ export const defaultEditVal: AppEditType = { serverAddress: 'docker.io' }, storeList: [], + volumes: [], gpu: { manufacturers: 'nvidia', type: '', diff --git a/frontend/providers/applaunchpad/src/mock/apps.ts b/frontend/providers/applaunchpad/src/mock/apps.ts index f6809b3a744..e9f23ef9bd4 100644 --- a/frontend/providers/applaunchpad/src/mock/apps.ts +++ b/frontend/providers/applaunchpad/src/mock/apps.ts @@ -238,6 +238,8 @@ export const MOCK_PODS: PodDetailType[] = [ ]; export const MOCK_APP_DETAIL: AppDetailType = { + kind: 'deployment', + volumes: [], crYamlList: [], id: '4bd50c41-149e-4da5-89d5-0308b9dd75c6', createTime: '2022/1/22', diff --git a/frontend/providers/applaunchpad/src/pages/app/edit/components/ConfigmapModal.tsx b/frontend/providers/applaunchpad/src/pages/app/edit/components/ConfigmapModal.tsx index c5ede83d5bf..62a68556299 100644 --- a/frontend/providers/applaunchpad/src/pages/app/edit/components/ConfigmapModal.tsx +++ b/frontend/providers/applaunchpad/src/pages/app/edit/components/ConfigmapModal.tsx @@ -94,6 +94,7 @@ const ConfigmapModal = ({ {t('file value')}{' '}