From c7a85b663179e548491d51557c78e8d43c06236d Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Mon, 3 Apr 2017 13:08:26 -0700 Subject: [PATCH] fix(core/serverGroup): Fix a bug where serverGroups do not load correctly when checking for sticky headers --- app/scripts/modules/core/serverGroup/serverGroup.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/modules/core/serverGroup/serverGroup.component.ts b/app/scripts/modules/core/serverGroup/serverGroup.component.ts index ad3dd0fd8b9..f8bb099308a 100644 --- a/app/scripts/modules/core/serverGroup/serverGroup.component.ts +++ b/app/scripts/modules/core/serverGroup/serverGroup.component.ts @@ -55,10 +55,10 @@ export class ServerGroupController implements IComponentController { this.setViewModel(); this.headerIsSticky = function() { - if (!this.$scope.sortFilter.showAllInstances) { + if (!this.sortFilter.showAllInstances) { return false; } - if (this.$scope.sortFilter.listInstances) { + if (this.sortFilter.listInstances) { return this.viewModel.instances.length > 1; } return this.viewModel.instances.length > 20;