@@ -113,7 +113,7 @@ export default class AZSelectorTable extends Component {
113
113
} = this . props ;
114
114
const universeTemplate = _ . clone ( universeConfigTemplate . data ) ;
115
115
const currentAZState = [ ...this . state . azItemState ] ;
116
- const replicationFactor = currentPlacementStatus ? .replicationFactor ;
116
+ const replicationFactor = currentPlacementStatus . replicationFactor ;
117
117
const item = currentAZState . find ( item => item . value === zoneId ) ;
118
118
const originalValue = item . count ;
119
119
let totalNumNodes = 0 ;
@@ -403,24 +403,10 @@ export default class AZSelectorTable extends Component {
403
403
404
404
UNSAFE_componentWillMount ( ) {
405
405
const {
406
- universe : { currentUniverse, universeConfigTemplate, currentPlacementStatus } ,
406
+ universe : { currentUniverse, universeConfigTemplate } ,
407
407
type,
408
408
clusterType
409
409
} = this . props ;
410
-
411
- // If currentPlacementStatus is null the fetch it.
412
- if ( ! currentPlacementStatus ) {
413
- const configTemplateCurrentCluster = isNonEmptyObject ( universeConfigTemplate . data )
414
- ? getClusterByType ( universeConfigTemplate . data . clusters , clusterType )
415
- : null ;
416
- const placementInfo = this . getGroupWithCounts ( universeConfigTemplate . data ) ;
417
- const placementStatusObject = {
418
- numUniqueRegions : placementInfo . uniqueRegions ,
419
- numUniqueAzs : placementInfo . uniqueAzs ,
420
- replicationFactor : configTemplateCurrentCluster . userIntent . replicationFactor
421
- } ;
422
- this . props . setPlacementStatus ( placementStatusObject ) ;
423
- }
424
410
const currentCluster = getPromiseState ( universeConfigTemplate ) . isSuccess ( )
425
411
? getClusterByType ( universeConfigTemplate . data . clusters , clusterType )
426
412
: { } ;
@@ -448,7 +434,7 @@ export default class AZSelectorTable extends Component {
448
434
const placementInfo = this . getGroupWithCounts ( universeConfigTemplate . data ) ;
449
435
const azGroups = placementInfo . groups ;
450
436
if (
451
- ! areUniverseConfigsEqual (
437
+ ! areUniverseConfigsEqual (
452
438
this . props . universe . universeConfigTemplate . data ,
453
439
universeConfigTemplate . data
454
440
)
0 commit comments