File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Pages/App/Configurations/WorkflowEditor/CreateCICDPipeline Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ export const CDStepperContent = ({
169
169
</ div >
170
170
{ ! window . _env_ . HIDE_GITOPS_OR_HELM_OPTION &&
171
171
! selectedEnvironment ?. isVirtualEnvironment &&
172
- selectedEnvironment ?. allowedDeploymentTypes . length > 0 &&
172
+ selectedEnvironment ?. allowedDeploymentTypes ? .length > 0 &&
173
173
// Want to show this when gitops module is installed, does not matter if it is configured or not
174
174
( ! noGitOpsModuleInstalledAndConfigured || isGitOpsInstalledButNotConfigured ) && (
175
175
< div className = "mt-16" >
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export const CreateCICDPipeline = ({
102
102
103
103
const checkForGitOpsRepoNotConfigured = ( ) => {
104
104
const isHelmEnforced =
105
- selectedEnvironment . allowedDeploymentTypes . length === 1 &&
105
+ selectedEnvironment ? .allowedDeploymentTypes ? .length === 1 &&
106
106
selectedEnvironment . allowedDeploymentTypes [ 0 ] === DeploymentAppTypes . HELM
107
107
108
108
const gitOpsRepoNotConfiguredAndOptionsHidden =
@@ -121,7 +121,7 @@ export const CreateCICDPipeline = ({
121
121
! window . _env_ . HIDE_GITOPS_OR_HELM_OPTION
122
122
123
123
const isGitOpsRepoNotConfiguredAndGitopsEnforced =
124
- isGitOpsRepoNotConfiguredAndOptionsVisible && selectedEnvironment . allowedDeploymentTypes . length === 1
124
+ isGitOpsRepoNotConfiguredAndOptionsVisible && selectedEnvironment ? .allowedDeploymentTypes ? .length === 1
125
125
126
126
if ( isGitOpsRepoNotConfiguredAndOptionsVisible ) {
127
127
setGitOpsRepoConfiguredWarning ( { show : true , text : gitOpsRepoNotConfigured } )
You can’t perform that action at this time.
0 commit comments