From 06092540ad455753d19e85677e638797822f5150 Mon Sep 17 00:00:00 2001 From: Liza Katz Date: Thu, 3 Sep 2020 12:55:33 +0300 Subject: [PATCH] Update index.tsx Abort signal --- .../public/hosts/containers/authentications/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/public/hosts/containers/authentications/index.tsx b/x-pack/plugins/security_solution/public/hosts/containers/authentications/index.tsx index c11de9100e71e..e89eb49ff21a3 100644 --- a/x-pack/plugins/security_solution/public/hosts/containers/authentications/index.tsx +++ b/x-pack/plugins/security_solution/public/hosts/containers/authentications/index.tsx @@ -129,14 +129,15 @@ export const useAuthentications = ({ const authenticationsSearch = useCallback( (request: AuthenticationsRequestOptions) => { let didCancel = false; - const asyncSearch = async () => { + const async + = async () => { abortCtrl.current = new AbortController(); setLoading(true); const searchSubscription$ = data.search .search(request, { strategy: 'securitySolutionSearchStrategy', - signal: abortCtrl.current.signal, + abortSignal: abortCtrl.current.signal, }) .subscribe({ next: (response) => {