RED-9554: use backend error message for dossier attributes.

This commit is contained in:
Nicoleta Panaghiu 2024-10-09 18:20:11 +03:00
parent 211d81ab7a
commit 60e151db0f

View File

@ -91,7 +91,7 @@ export class AddEditDossierAttributeDialogComponent extends BaseDialogComponent
const createOrUpdate = this._dossierAttributesService.createOrUpdate(attribute, this.data.dossierTemplateId);
const result = await createOrUpdate.catch((error: HttpErrorResponse) => {
this._loadingService.stop();
this._toaster.error(_('add-edit-dossier-attribute.error.generic'), { error });
this._toaster.rawError(error.error.message);
return undefined;
});