diff --git a/src/app/pages/landing/landing.component.ts b/src/app/pages/landing/landing.component.ts index ab1718e..8d37149 100644 --- a/src/app/pages/landing/landing.component.ts +++ b/src/app/pages/landing/landing.component.ts @@ -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(() => { @@ -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 {