Skip to content

Commit

Permalink
mat chips get request issue
Browse files Browse the repository at this point in the history
  • Loading branch information
waqil52 committed Jan 12, 2021
1 parent 4532e0f commit 13e14a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/profile/profile.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ProfileComponent implements OnInit {
headElements = ['Name', 'Role','Subscription', 'Status'];
subscriptionHeadElements = ['Name','Edit'];
usersTable: any = [];
subscriptionTable: any = [];
subscriptionTable: string[] = [];
UserForm: FormGroup;
headingMessage: string = "";
checkError = false;
Expand Down Expand Up @@ -126,7 +126,11 @@ export class ProfileComponent implements OnInit {
console.log(id);
this.apiService.getSubscriptionsByUserId(id).subscribe(data => {
let sub = data as SubscriptionDto;
this.fruits.push(... sub.path);
this.fruits = [];
if(id === sub.userId){
console.log(sub);
}

})

}
Expand Down

0 comments on commit 13e14a0

Please sign in to comment.