[ADF-4205] Fix console error when adding user or group in Permissions Page ()

This commit is contained in:
davidcanonieto 2019-03-14 22:01:29 +00:00 committed by Eugenio Romano
parent e49ba58d65
commit 8edf92f325

@ -63,17 +63,14 @@ export class DemoPermissionComponent implements OnInit {
} }
openAddPermissionDialog(event: Event) { openAddPermissionDialog(event: Event) {
this.nodePermissionDialogService.updateNodePermissionByDialog(this.nodeId).subscribe(() => { this.nodePermissionDialogService.updateNodePermissionByDialog(this.nodeId).subscribe(
this.displayPermissionComponent.reload(); () => this.displayPermissionComponent.reload(),
}, (error) => this.showErrorMessage(error));
(error) => {
this.showErrorMessage(error);
});
} }
showErrorMessage(error) { showErrorMessage(error) {
this.notificationService.openSnackMessage( this.notificationService.openSnackMessage(
error, error.message,
4000 4000
); );
} }