Remove useless api call in channel page

This commit is contained in:
nymkappa 2022-08-22 09:07:09 +02:00
parent 766dcddd36
commit f7d475aa75
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -74,7 +74,7 @@ export class NodesChannelsMap implements OnInit {
switchMap((params: ParamMap) => { switchMap((params: ParamMap) => {
return zip( return zip(
this.assetsService.getWorldMapJson$, this.assetsService.getWorldMapJson$,
this.apiService.getChannelsGeo$(params.get('public_key') ?? undefined), this.style !== 'channelpage' ? this.apiService.getChannelsGeo$(params.get('public_key') ?? undefined) : [''],
[params.get('public_key') ?? undefined] [params.get('public_key') ?? undefined]
).pipe(tap((data) => { ).pipe(tap((data) => {
registerMap('world', data[0]); registerMap('world', data[0]);