|
1 | | -import { useAppConfig } from "@/components/AppConfigProvider"; |
2 | 1 | import HelpTooltip from "@/components/HelpTooltip"; |
3 | 2 | import { UserContext } from "@/components/UserProvider"; |
4 | 3 | import { AppConfigFormFields } from "@/components/config/AppConfigFormFields"; |
5 | 4 | import { GroupConfigFields } from "@/components/config/GroupConfigFields"; |
6 | | -import { ProjectConfig } from "@/components/config/ProjectConfig"; |
7 | 5 | import { Button } from "@/components/ui/button"; |
8 | 6 | import { Input } from "@/components/ui/input"; |
9 | 7 | import { Label } from "@/components/ui/label"; |
@@ -40,7 +38,6 @@ export const ConfigTab = ({ |
40 | 38 | ); |
41 | 39 | } |
42 | 40 |
|
43 | | - const appConfig = useAppConfig(); |
44 | 41 | const [state, setState] = useState<CommonFormFields>( |
45 | 42 | getFormStateFromApp(app), |
46 | 43 | ); |
@@ -69,10 +66,7 @@ export const ConfigTab = ({ |
69 | 66 | body: { |
70 | 67 | displayName: state.displayName, |
71 | 68 | appGroup: groupState.groupOption, |
72 | | - projectId: |
73 | | - state.projectId && state.projectId !== app.projectId |
74 | | - ? state.projectId |
75 | | - : undefined, |
| 69 | + projectId: state.projectId ?? undefined, |
76 | 70 | config: createDeploymentConfig(finalAppState), |
77 | 71 | }, |
78 | 72 | }); |
@@ -139,9 +133,6 @@ export const ConfigTab = ({ |
139 | 133 | /> |
140 | 134 | </div> |
141 | 135 | <GroupConfigFields state={groupState} setState={setGroupState} /> |
142 | | - {appConfig?.isRancherManaged && ( |
143 | | - <ProjectConfig state={state} setState={setState} /> |
144 | | - )} |
145 | 136 | <FormContext value="UpdateApp"> |
146 | 137 | <AppConfigFormFields |
147 | 138 | groupState={groupState} |
|
0 commit comments