Skip to content

Commit 6075317

Browse files
committed
Lint errors fixed
1 parent 865e521 commit 6075317

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/app/shared/search/search-filters/search-filters.component.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import {
1515
BehaviorSubject,
1616
Observable,
1717
} from 'rxjs';
18-
import { map, filter } from 'rxjs/operators';
18+
import {
19+
filter,
20+
map,
21+
} from 'rxjs/operators';
1922

2023
import {
2124
APP_CONFIG,
@@ -162,7 +165,7 @@ export class SearchFiltersComponent implements OnInit {
162165
// We haven't reached the total yet, proceed with increment
163166
return {
164167
shouldIncrement: true,
165-
totalFilters
168+
totalFilters,
166169
};
167170
}
168171
return { shouldIncrement: false };
@@ -180,14 +183,14 @@ export class SearchFiltersComponent implements OnInit {
180183
// Create new counter entry
181184
this.currentFiltersComputed.push({
182185
configuration: this.currentConfiguration,
183-
filtersComputed: 1
186+
filtersComputed: 1,
184187
});
185188
}
186189

187190
// Pass along the total and updated count
188191
return {
189192
totalFilters: result.totalFilters,
190-
currentComputed: this.getCurrentFiltersComputed(this.currentConfiguration)
193+
currentComputed: this.getCurrentFiltersComputed(this.currentConfiguration),
191194
};
192195
}),
193196
// Check if we've reached the total after incrementing
@@ -197,7 +200,7 @@ export class SearchFiltersComponent implements OnInit {
197200
this.updateFinalFiltersComputed(this.currentConfiguration, result.currentComputed);
198201
}
199202
return result;
200-
})
203+
}),
201204
).subscribe().unsubscribe(); // Execute the pipeline and immediately unsubscribe
202205
}
203206
}
@@ -209,7 +212,7 @@ export class SearchFiltersComponent implements OnInit {
209212
*/
210213
private findConfigInCurrentFilters(configuration: string) {
211214
return this.currentFiltersComputed.find(
212-
(configFilter) => configFilter.configuration === configuration
215+
(configFilter) => configFilter.configuration === configuration,
213216
);
214217
}
215218

@@ -220,7 +223,7 @@ export class SearchFiltersComponent implements OnInit {
220223
*/
221224
private findConfigInFinalFilters(configuration: string) {
222225
return this.finalFiltersComputed.find(
223-
(configFilter) => configFilter.configuration === configuration
226+
(configFilter) => configFilter.configuration === configuration,
224227
);
225228
}
226229

@@ -237,7 +240,7 @@ export class SearchFiltersComponent implements OnInit {
237240
} else {
238241
this.finalFiltersComputed.push({
239242
configuration,
240-
filtersComputed: count
243+
filtersComputed: count,
241244
});
242245
}
243246
}

0 commit comments

Comments
 (0)