Skip to content

Commit

Permalink
Removed the commeted code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav061 committed Jan 29, 2021
1 parent 9b4f091 commit 6f363e9
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,9 @@ export default class AZSelectorTable extends Component {
universe: { currentPlacementStatus, universeConfigTemplate },
clusterType
} = this.props;
console.log("This props currentPlacementStatus", currentPlacementStatus)
const universeTemplate = _.clone(universeConfigTemplate.data);
const currentAZState = [...this.state.azItemState];
const replicationFactor = currentPlacementStatus?.replicationFactor;
// if (!replicationFactor) {
// const configTemplateCurrentCluster = isNonEmptyObject(universeTemplate)
// ? getClusterByType(universeTemplate.clusters, clusterType)
// : null;
// const placementInfo = this.getGroupWithCounts(universeTemplate);
// const placementStatusObject = {
// numUniqueRegions: placementInfo.uniqueRegions,
// numUniqueAzs: placementInfo.uniqueAzs,
// replicationFactor: configTemplateCurrentCluster.userIntent.replicationFactor
// };
// this.props.setPlacementStatus(placementStatusObject);
// console.log("CurrentPlacementStatus -- ", currentPlacementStatus);
// }
const item = currentAZState.find(item => item.value === zoneId);
const originalValue = item.count;
let totalNumNodes = 0;
Expand Down Expand Up @@ -416,7 +402,8 @@ export default class AZSelectorTable extends Component {
type,
clusterType
} = this.props;


// If currentPlacementStatus is null the fetch it.
if(!currentPlacementStatus) {
const configTemplateCurrentCluster = isNonEmptyObject(universeConfigTemplate.data)
? getClusterByType(universeConfigTemplate.data.clusters, clusterType)
Expand Down

0 comments on commit 6f363e9

Please sign in to comment.