Skip to content

Commit

Permalink
fix(core/loadBalancer): Actually check for all the changes to props (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Reynolds authored Oct 21, 2017
1 parent db2275b commit 473ba90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface ILoadBalancerClusterContainerProps {
export class LoadBalancerClusterContainer extends React.Component<ILoadBalancerClusterContainerProps> {
public shouldComponentUpdate(nextProps: ILoadBalancerClusterContainerProps) {
const serverGroupsEqual = () => isEqual((nextProps.serverGroups || []).map(g => g.name), (this.props.serverGroups || []).map(g => g.name));
return nextProps.showInstances !== this.props.showInstances || nextProps.showInstances !== this.props.showInstances || nextProps.loadBalancer !== this.props.loadBalancer || !serverGroupsEqual();
return nextProps.showInstances !== this.props.showInstances || nextProps.showServerGroups !== this.props.showServerGroups || nextProps.loadBalancer !== this.props.loadBalancer || !serverGroupsEqual();
}

public render(): React.ReactElement<LoadBalancerClusterContainer> {
Expand Down

0 comments on commit 473ba90

Please sign in to comment.