Browse Source

fixed double request on discard

pull/11426/head
mpetrov 2 years ago
parent
commit
858bdfeea5
  1. 2
      ui-ngx/src/app/core/interceptors/entity-conflict.interceptor.ts

2
ui-ngx/src/app/core/interceptors/entity-conflict.interceptor.ts

@ -75,7 +75,7 @@ export class EntityConflictInterceptor implements HttpInterceptor {
return next.handle(this.updateRequestVersion(request));
}
(request.params as HttpParams & { interceptorConfig: InterceptorConfig }).interceptorConfig.ignoreErrors = true;
return next.handle(request);
return throwError(() => new Error(error.error.message));
}
return of(null);
})

Loading…
Cancel
Save