Skip to content

Commit

Permalink
fix: could not load full list of rooms #78
Browse files Browse the repository at this point in the history
  • Loading branch information
rbento1096 committed Mar 17, 2024
1 parent 317d26e commit cd07a01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front-end/src/app/tabs/rooms/rooms.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export class RoomsService {
constructor(private api: IDEAApiService) {}

private async loadList(venue?: string): Promise<void> {
this.rooms = (await this.api.getResource(['rooms'], { params: { venue } })).map(r => new Room(r));
const params: any = {}
if (venue) params.venue = venue
this.rooms = (await this.api.getResource(['rooms'], { params })).map(r => new Room(r));
}

/**
Expand Down

0 comments on commit cd07a01

Please sign in to comment.