fix invites

This commit is contained in:
_Bastler 2021-05-07 11:43:11 +02:00
parent d5a52451b5
commit 6332285265

View File

@ -68,9 +68,15 @@ export class InvitesComponent implements OnInit {
}
})
this.inviteService.get(this.quota).subscribe((data: any) => {
this.invites = data;
})
if(!this.invites) {
this.inviteService.get(this.quota).subscribe((data: any) => {
this.invites = data;
})
} else {
this.inviteService.getPages(this.quota, this.invites.number || 0, this.invites.size || 10, this.searchFormControl.value ? this.searchFormControl.value : "").subscribe((data: any) => {
this.invites = data;
}, (error) => {})
}
this.inviteService.getOthers(this.quota).subscribe((data: any) => {
this.others = data;