Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Tucker committed Aug 30, 2021
1 parent 1bc0204 commit 64a788f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/program/ProgramUsersTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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;
Expand Down

0 comments on commit 64a788f

Please sign in to comment.