From 6dd66a1dd3c218efdf272667fe416199e73681a2 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 8 Mar 2021 10:44:11 -0500 Subject: [PATCH] LP#1908763: (follow-up) clean up ng lint warnings Signed-off-by: Galen Charlton --- .../admin/local/survey/survey.component.ts | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/survey/survey.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/survey/survey.component.ts index 7bec134b89..c51af574fb 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/survey/survey.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/survey/survey.component.ts @@ -31,7 +31,7 @@ export class SurveyComponent implements OnInit { @ViewChild('endSurveySuccessString', { static: true }) endSurveySuccessString: StringComponent; @Input() sortField: string; - @Input() idlClass='asv'; + @Input() idlClass = 'asv'; @Input() dialogSize: 'sm' | 'lg' = 'lg'; constructor( @@ -46,20 +46,20 @@ export class SurveyComponent implements OnInit { ngOnInit() { this.gridDataSource.getRows = (pager: Pager, sort: any[]) => { - const orderBy: any = {}; - if (sort.length) { - // Sort specified from grid - orderBy[this.idlClass] = sort[0].name + ' ' + sort[0].dir; - } else if (this.sortField) { - // Default sort field - orderBy[this.idlClass] = this.sortField; - } + const orderBy: any = {}; + if (sort.length) { + // Sort specified from grid + orderBy[this.idlClass] = sort[0].name + ' ' + sort[0].dir; + } else if (this.sortField) { + // Default sort field + orderBy[this.idlClass] = this.sortField; + } - const searchOps = { - offset: pager.offset, - limit: pager.limit, - order_by: orderBy - }; + const searchOps = { + offset: pager.offset, + limit: pager.limit, + order_by: orderBy + }; return this.pcrud.retrieveAll('asv', searchOps, {}); }; -- 2.43.2