From ab889eed3e75d5125c7710b3057fe7298918da53 Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Thu, 10 Sep 2020 19:03:42 -0700 Subject: [PATCH] Fix type check --- .../public/applications/shared/http/http_logic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/http/http_logic.ts b/x-pack/plugins/enterprise_search/public/applications/shared/http/http_logic.ts index 5b694a49d06567..ec9db30ddef3ba 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/http/http_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/shared/http/http_logic.ts @@ -6,7 +6,7 @@ import { kea, MakeLogicType } from 'kea'; -import { HttpSetup } from 'src/core/public'; +import { HttpSetup, HttpInterceptorResponseError } from 'src/core/public'; export interface IHttpValues { http: HttpSetup; @@ -70,7 +70,7 @@ export const HttpLogic = kea>({ } // Re-throw error so that downstream catches work as expected - return Promise.reject(httpResponse); + return Promise.reject(httpResponse) as Promise; }, }); httpInterceptors.push(errorConnectingInterceptor);