We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6075317 commit c90008eCopy full SHA for c90008e
src/app/shared/search/search-filters/search-filters.component.ts
@@ -18,6 +18,7 @@ import {
18
import {
19
filter,
20
map,
21
+ take,
22
} from 'rxjs/operators';
23
24
@@ -201,7 +202,7 @@ export class SearchFiltersComponent implements OnInit {
201
202
}
203
return result;
204
}),
- ).subscribe().unsubscribe(); // Execute the pipeline and immediately unsubscribe
205
+ ).pipe(take(1)).subscribe(); // Execute the pipeline once and complete
206
207
208
0 commit comments