Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
() => operateChanges(operateMsg, OperationState.success),
catchError( error => {
mergeMap(res => {
operateChanges(operMessage, OperationState.success);
return observableOf(res);
})); }),
catchError(
() => operateChanges(operateMsg, OperationState.success),
catchError( error => {
this.translate.get('BATCH.DELETED_SUCCESS').subscribe(res => {
operateChanges(operMessage, OperationState.success);
});
}).catch(error => {
this.translate.get("BATCH.DELETED_SUCCESS").subscribe(res => {
operateChanges(operMessage, OperationState.success);
});
}), catchError(error => {
successCount = res.filter(r => r.state === OperationState.success).length;
if (totalCount === successCount) {
return this.translate.get("BATCH.DELETED_SUCCESS").pipe(flatMap(res => {
operateChanges(operMessage, OperationState.success);
return of(res);
}));
}))