Skip to content

Commit

Permalink
fix(clubs): switching clubs could cause this to return the wrong club
Browse files Browse the repository at this point in the history
  • Loading branch information
cskiwi committed Jul 31, 2024
1 parent c3b187e commit cdb94f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/frontend/pages/club/src/services/club.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
map,
startWith,
switchMap,
throttleTime,
} from 'rxjs/operators';

export interface ClubDetailState {
Expand Down Expand Up @@ -52,7 +51,7 @@ export class ClubDetailService {
// sources
private error$ = new Subject<string>();
private clubLoaded = this.filterChanged$.pipe(
throttleTime(300),
// throttleTime(300),
switchMap((filter) =>
this.getClub(filter.clubId).pipe(
map((club) => ({ club, loaded: true, error: null })),
Expand Down

0 comments on commit cdb94f4

Please sign in to comment.