Skip to content

Commit

Permalink
fix(models): Edit component calls subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalshaikh42 committed Feb 21, 2020
1 parent efcedb7 commit 50f15ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CRBM-Viz/src/app/Modules/models/edit/edit.component.ts
Expand Up @@ -313,6 +313,7 @@ export class EditComponent implements OnInit {
submit() {
const data: Model = this.formGroup.value as Model;
data.id = this.id;

const model: Observable<Model> = this.modelService.update(data);
model.pipe(
pluck('id'),
Expand All @@ -327,6 +328,7 @@ export class EditComponent implements OnInit {
}, 2500);
})
);
model.subscribe();
}

openDeleteDialog(): void {
Expand Down

0 comments on commit 50f15ac

Please sign in to comment.