From 19a90c29f2cd70e68fde2667116aee8086df045a Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Fri, 20 Oct 2017 18:07:03 -0700 Subject: [PATCH] fix(core/loadBalancer): Actually check for all the changes to props --- .../core/src/loadBalancer/LoadBalancerClusterContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/modules/core/src/loadBalancer/LoadBalancerClusterContainer.tsx b/app/scripts/modules/core/src/loadBalancer/LoadBalancerClusterContainer.tsx index a31cc26e2fa..bd3ca38fd52 100644 --- a/app/scripts/modules/core/src/loadBalancer/LoadBalancerClusterContainer.tsx +++ b/app/scripts/modules/core/src/loadBalancer/LoadBalancerClusterContainer.tsx @@ -16,7 +16,7 @@ export interface ILoadBalancerClusterContainerProps { export class LoadBalancerClusterContainer extends React.Component { 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 {