Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(vm-list): "Cannot read property 'tokens' of undefined" in product…
Browse files Browse the repository at this point in the history
…ion (#640)
  • Loading branch information
HeyRoach committed Oct 30, 2017
1 parent 47280ac commit 9602998
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/vm/vm-list/vm-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,11 @@ export class VmListComponent implements OnInit {
observables.forEach(observable => {
observable.subscribe(job => {
const action = this.vmActionsService.getActionByName(job.cmd as any);
this.jobsNotificationService.finish({
message: action.tokens.successMessage
});
if (action) {
this.jobsNotificationService.finish({
message: action.tokens.successMessage
});
}
});
});
});
Expand Down

0 comments on commit 9602998

Please sign in to comment.