Fixed bug where updating a subscription would not work correctly

This commit is contained in:
Isaac Abadi
2020-11-14 16:54:20 -05:00
parent 9e4b328f91
commit 1bb2f54eba
2 changed files with 3 additions and 2 deletions

View File

@@ -71,9 +71,10 @@ export class EditSubscriptionDialogComponent implements OnInit {
}
saveSubscription() {
this.postsService.updateSubscription(this.sub).subscribe(res => {
this.postsService.updateSubscription(this.new_sub).subscribe(res => {
this.sub = this.new_sub;
this.new_sub = JSON.parse(JSON.stringify(this.sub));
this.postsService.reloadSubscriptions();
})
}