From 2e01ff78266e0f9c7879b1f43d6d2f3dbee314c3 Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Tue, 28 Jul 2020 09:55:59 -0400 Subject: [PATCH] Fix modal-body div missing #583 (#585) * Fix modal-body div missing #583 * Revert "Fix modal-body div missing #583" This reverts commit 38f0cae82dae229cf929a52ba8d2d622b9449f72. * Fixing modal-body div missing #583 --- src/app/organizations/manage/collections.component.ts | 4 ++-- src/app/organizations/manage/groups.component.ts | 4 ++-- src/app/organizations/manage/people.component.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/organizations/manage/collections.component.ts b/src/app/organizations/manage/collections.component.ts index 03a8184156f..d3374f7eb55 100644 --- a/src/app/organizations/manage/collections.component.ts +++ b/src/app/organizations/manage/collections.component.ts @@ -85,7 +85,7 @@ export class CollectionsComponent implements OnInit { } loadMore() { - if (this.collections.length <= this.pageSize) { + if (!this.collections || this.collections.length <= this.pageSize) { return; } const pagedLength = this.pagedCollections.length; @@ -185,7 +185,7 @@ export class CollectionsComponent implements OnInit { if (searching && this.didScroll) { this.resetPaging(); } - return !searching && this.collections.length > this.pageSize; + return !searching && this.collections && this.collections.length > this.pageSize; } private removeCollection(collection: CollectionView) { diff --git a/src/app/organizations/manage/groups.component.ts b/src/app/organizations/manage/groups.component.ts index 732aef16f59..6a5b6daeda9 100644 --- a/src/app/organizations/manage/groups.component.ts +++ b/src/app/organizations/manage/groups.component.ts @@ -81,7 +81,7 @@ export class GroupsComponent implements OnInit { } loadMore() { - if (this.groups.length <= this.pageSize) { + if (!this.groups || this.groups.length <= this.pageSize) { return; } const pagedLength = this.pagedGroups.length; @@ -179,7 +179,7 @@ export class GroupsComponent implements OnInit { if (searching && this.didScroll) { this.resetPaging(); } - return !searching && this.groups.length > this.pageSize; + return !searching && this.groups && this.groups.length > this.pageSize; } private removeGroup(group: GroupResponse) { diff --git a/src/app/organizations/manage/people.component.ts b/src/app/organizations/manage/people.component.ts index 43f3d68b8a0..8913d1cb85d 100644 --- a/src/app/organizations/manage/people.component.ts +++ b/src/app/organizations/manage/people.component.ts @@ -129,7 +129,7 @@ export class PeopleComponent implements OnInit { } loadMore() { - if (this.users.length <= this.pageSize) { + if (!this.users || this.users.length <= this.pageSize) { return; } const pagedLength = this.pagedUsers.length; @@ -331,7 +331,7 @@ export class PeopleComponent implements OnInit { if (searching && this.didScroll) { this.resetPaging(); } - return !searching && this.users.length > this.pageSize; + return !searching && this.users && this.users.length > this.pageSize; } private async doConfirmation(user: OrganizationUserUserDetailsResponse) {