From 6075317c88295d69271dc0f2e052ece3a07336f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Fern=C3=A1ndez=20Celorio?= Date: Thu, 10 Apr 2025 14:27:44 +0200 Subject: [PATCH] Lint errors fixed --- .../search-filters.component.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/app/shared/search/search-filters/search-filters.component.ts b/src/app/shared/search/search-filters/search-filters.component.ts index 4ef074c2f9..6755c7f50a 100644 --- a/src/app/shared/search/search-filters/search-filters.component.ts +++ b/src/app/shared/search/search-filters/search-filters.component.ts @@ -15,7 +15,10 @@ import { BehaviorSubject, Observable, } from 'rxjs'; -import { map, filter } from 'rxjs/operators'; +import { + filter, + map, +} from 'rxjs/operators'; import { APP_CONFIG, @@ -162,7 +165,7 @@ export class SearchFiltersComponent implements OnInit { // We haven't reached the total yet, proceed with increment return { shouldIncrement: true, - totalFilters + totalFilters, }; } return { shouldIncrement: false }; @@ -180,14 +183,14 @@ export class SearchFiltersComponent implements OnInit { // Create new counter entry this.currentFiltersComputed.push({ configuration: this.currentConfiguration, - filtersComputed: 1 + filtersComputed: 1, }); } // Pass along the total and updated count return { totalFilters: result.totalFilters, - currentComputed: this.getCurrentFiltersComputed(this.currentConfiguration) + currentComputed: this.getCurrentFiltersComputed(this.currentConfiguration), }; }), // Check if we've reached the total after incrementing @@ -197,7 +200,7 @@ export class SearchFiltersComponent implements OnInit { this.updateFinalFiltersComputed(this.currentConfiguration, result.currentComputed); } return result; - }) + }), ).subscribe().unsubscribe(); // Execute the pipeline and immediately unsubscribe } } @@ -209,7 +212,7 @@ export class SearchFiltersComponent implements OnInit { */ private findConfigInCurrentFilters(configuration: string) { return this.currentFiltersComputed.find( - (configFilter) => configFilter.configuration === configuration + (configFilter) => configFilter.configuration === configuration, ); } @@ -220,7 +223,7 @@ export class SearchFiltersComponent implements OnInit { */ private findConfigInFinalFilters(configuration: string) { return this.finalFiltersComputed.find( - (configFilter) => configFilter.configuration === configuration + (configFilter) => configFilter.configuration === configuration, ); } @@ -237,7 +240,7 @@ export class SearchFiltersComponent implements OnInit { } else { this.finalFiltersComputed.push({ configuration, - filtersComputed: count + filtersComputed: count, }); } }