Skip to content

Commit

Permalink
Make initial room fetch in landing component consistent with activity
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Aug 27, 2024
1 parent 90d8364 commit b17a4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/landing/landing.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export class LandingComponent implements OnDestroy {

constructor(private client: ClientService, @Inject(PLATFORM_ID) platformId: Object, changeDetector: ChangeDetectorRef) {
client.getInstance().subscribe(data => this.instance = data);
client.getRoomListing().subscribe(data => this.rooms = data.data);

if(isPlatformBrowser(platformId)) {
inject(NgZone).runOutsideAngular(() => {
Expand All @@ -85,6 +84,7 @@ export class LandingComponent implements OnDestroy {
}

this.fetchActivity().subscribe(data => this.activity = data);
this.fetchRooms().subscribe(data => this.rooms = data.data);
}

ngOnDestroy(): void {
Expand Down

0 comments on commit b17a4a1

Please sign in to comment.