diff --git a/angular/projects/admin-nrpti/src/app/records/records-resolver.ts b/angular/projects/admin-nrpti/src/app/records/records-resolver.ts index c38248758..f7eae2b86 100644 --- a/angular/projects/admin-nrpti/src/app/records/records-resolver.ts +++ b/angular/projects/admin-nrpti/src/app/records/records-resolver.ts @@ -7,10 +7,7 @@ import { EpicProjectIds, SchemaLists } from '../../../../common/src/app/utils/re @Injectable() export class RecordsResolver implements Resolve> { - constructor( - private factoryService: FactoryService, - private tableTemplateUtils: TableTemplateUtils - ) {} + constructor(private factoryService: FactoryService, private tableTemplateUtils: TableTemplateUtils) {} resolve(route: ActivatedRouteSnapshot): Observable { const params = { ...route.params }; diff --git a/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts b/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts index 1b80fffa7..017b359eb 100644 --- a/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts +++ b/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts @@ -152,9 +152,9 @@ export class RecordUtils { const legislation = Array.isArray(row['legislation']) ? row['legislation'][0] : row['legislation']; if (legislation) { - if(legislation['act'] && legislation['act'].startsWith("ACT_")){ + if (legislation['act'] && legislation['act'].startsWith('ACT_')) { const actTitle = dataService.displayActTitleFull(legislation['act']); - if(actTitle){ + if (actTitle) { line.push(escapeCsvString(actTitle)); } } else { @@ -197,7 +197,6 @@ export class RecordUtils { download(`nrced-export-${moment().format('YYYY-MM-DD')}.csv`, output); } - } /**