From 64a788f44a7f0ac077481e781ac873c7347ff765 Mon Sep 17 00:00:00 2001 From: Chris Tucker Date: Mon, 30 Aug 2021 13:58:44 -0400 Subject: [PATCH] fix build errors --- src/components/program/ProgramUsersTable.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/program/ProgramUsersTable.vue b/src/components/program/ProgramUsersTable.vue index 724726b8c..0081c37dd 100644 --- a/src/components/program/ProgramUsersTable.vue +++ b/src/components/program/ProgramUsersTable.vue @@ -249,7 +249,7 @@ export default class ProgramUsersTable extends Vue { } setSort(field: string, order: string) { - const fieldMap = {'data.email': 'email', 'data.name': 'name'}; + const fieldMap: any = {'data.email': 'email', 'data.name': 'name'}; if (field in fieldMap) { this.getUsers(fieldMap[field], order); } @@ -262,7 +262,7 @@ export default class ProgramUsersTable extends Vue { this.paginationController.currentPage, this.paginationController.pageSize, this.paginationController.showAll); this.paginationController.setCurrentCall(paginationQuery); - const sort: SortField = sortField ? new SortField(sortField, sortOrder) : undefined; + const sort: SortField | undefined = sortField && sortOrder ? new SortField(sortField, sortOrder) : undefined; ProgramUserService.getAll(this.activeProgram!.id!, paginationQuery, sort).then(([programUsers, metadata]) => { if (this.paginationController.matchesCurrentRequest(metadata.pagination)){ this.users = programUsers;