@@ -107,7 +107,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
107107
108108 dialogHelper . promptDialog ( 'choose-component-dialog' , { availableComponentNames } ) . then ( result => {
109109 // no result indicates operation was cancelled
110- if ( result ? .componentName ) {
110+ if ( result && result . componentName ) {
111111 this . project . vzApplication . components . addNewItem ( {
112112 name : result . componentName ,
113113 ingressTraitEnable : false ,
@@ -214,7 +214,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
214214
215215 dialogHelper . promptDialog ( 'choose-secrets-dialog' , args ) . then ( result => {
216216 // no result indicates operation was cancelled
217- if ( result ? .secretNames ) {
217+ if ( result && result . secretNames ) {
218218 this . project . vzApplication . secrets . value = result . secretNames ;
219219 this . populateObservableSecrets ( ) ;
220220 }
@@ -236,7 +236,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
236236 } ;
237237 dialogHelper . promptDialog ( 'choose-secret-dialog' , args ) . then ( result => {
238238 // no result indicates operation was cancelled
239- if ( result ? .secretName ) {
239+ if ( result && result . secretName ) {
240240 selectedSecretNameObservable ( result . secretName ) ;
241241 }
242242 } ) ;
@@ -257,7 +257,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
257257 } ;
258258 dialogHelper . promptDialog ( 'choose-secret-dialog' , args ) . then ( result => {
259259 // no result indicates operation was cancelled
260- if ( result ? .secretName ) {
260+ if ( result && result . secretName ) {
261261 selectedSecretNameObservable ( result . secretName ) ;
262262 }
263263 } ) ;
@@ -343,7 +343,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
343343 } ;
344344 dialogHelper . promptDialog ( 'choose-deployment-dialog' , args ) . then ( result => {
345345 // no result indicates operation was cancelled
346- if ( result ? .deploymentName ) {
346+ if ( result && result . deploymentName ) {
347347 selectedDeploymentNameObservable ( result . deploymentName ) ;
348348 }
349349 } ) ;
@@ -393,7 +393,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
393393
394394 dialogHelper . promptDialog ( 'choose-clusters-dialog' , { selectedClusterNames, availableClusterNames } ) . then ( result => {
395395 // no result indicates operation was cancelled
396- if ( result ? .clusterNames ) {
396+ if ( result && result . clusterNames ) {
397397 this . project . vzApplication . placementClusters . value = result . clusterNames ;
398398 this . populateObservableClusters ( ) ;
399399 }
@@ -499,7 +499,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
499499 const observableArray = this . componentObservable ( component , 'ingressTraitRules' ) ;
500500 const newRule = { uid : utils . getShortUuid ( ) } ;
501501 dialogHelper . promptDialog ( 'vz-ingress-trait-rule-edit-dialog' , newRule ) . then ( result => {
502- if ( result ? .rule ) {
502+ if ( result && result . rule ) {
503503 observableArray . push ( result . rule ) ;
504504 }
505505 } ) ;
@@ -513,7 +513,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
513513 const ruleOptions = { ...rule } ;
514514
515515 dialogHelper . promptDialog ( 'vz-ingress-trait-rule-edit-dialog' , ruleOptions ) . then ( result => {
516- if ( result ? .rule ) {
516+ if ( result && result . rule ) {
517517 const mergedRule = this . mergeRule ( rule , result . rule ) ;
518518 observableArray . replace ( rule , mergedRule ) ;
519519 }
0 commit comments