Fixed refresh error with social page
This commit is contained in:
@@ -59,13 +59,6 @@ export class FriendsListComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async setOpen(isOpen: boolean, userId: number) {
|
async setOpen(isOpen: boolean, userId: number) {
|
||||||
const loading = await this.loadCtrl.create({
|
|
||||||
message: 'Chargement...',
|
|
||||||
spinner: 'lines-sharp-small'
|
|
||||||
});
|
|
||||||
await loading.present();
|
|
||||||
|
|
||||||
|
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
try {
|
try {
|
||||||
const userInfo = await firstValueFrom(this.usersService.getUserEndpoint(userId));
|
const userInfo = await firstValueFrom(this.usersService.getUserEndpoint(userId));
|
||||||
@@ -80,6 +73,5 @@ export class FriendsListComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.isModalOpen = isOpen;
|
this.isModalOpen = isOpen;
|
||||||
await loading.dismiss();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user