add test document menu component (#1802)

This commit is contained in:
Eugenio Romano
2017-04-03 14:22:34 +01:00
committed by Vito
parent 53c1af445e
commit 6ac9d45bcf
3 changed files with 119 additions and 4 deletions

View File

@@ -71,8 +71,8 @@ export class DocumentMenuActionComponent {
this.success.emit({node: res.entry});
},
error => {
let errorMessagePlaceholder = this.getErrorMessage(error.response);
if (errorMessagePlaceholder) {
if (error.response) {
let errorMessagePlaceholder = this.getErrorMessage(error.response);
this.message = this.formatString(errorMessagePlaceholder, [name]);
this.error.emit({message: this.message});
this.logService.error(this.message);