TSK-1528: Remove duplicated error message when creating a classification

This commit is contained in:
Sofie Hofmann 2021-01-28 09:09:08 +01:00
parent abfa4e09fc
commit 8cdc9d9c88
1 changed files with 5 additions and 1 deletions

View File

@ -30,8 +30,12 @@ export class HttpClientInterceptor implements HttpInterceptor {
) {
// ignore this error
} else if (
!(error.status === 409 && error.error.exception.endsWith('WorkbasketAccessItemAlreadyExistException'))
(error.status === 409 && error.error.exception.endsWith('WorkbasketAccessItemAlreadyExistException')) ||
error.error.exception.endsWith('WorkbasketAlreadyExistException') ||
error.error.exception.endsWith('ClassificationAlreadyExistException')
) {
return;
} else {
this.errorsService.triggerError(NOTIFICATION_TYPES.GENERAL_ERR, error);
}
}