TSK-1528: Remove duplicated error message when creating a classification
This commit is contained in:
parent
abfa4e09fc
commit
8cdc9d9c88
|
|
@ -30,8 +30,12 @@ export class HttpClientInterceptor implements HttpInterceptor {
|
||||||
) {
|
) {
|
||||||
// ignore this error
|
// ignore this error
|
||||||
} else if (
|
} 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);
|
this.errorsService.triggerError(NOTIFICATION_TYPES.GENERAL_ERR, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue