Merge branch 'RED-9554' into 'master'

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

See merge request redactmanager/red-ui!605
This commit is contained in:
Dan Percic 2024-10-09 18:07:45 +02:00
commit 59998396d4

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;
});