From 82108060e7c3794add5687761cf65890dc39d573 Mon Sep 17 00:00:00 2001 From: Ashokaditya <1849116+ashokaditya@users.noreply.github.com> Date: Tue, 16 May 2023 19:36:54 +0200 Subject: [PATCH] [Security Solution][Endpoint][Response Actions] Fix expand details tray (#157896) ## Summary Fixes the bug when sometimes the expanding tray breaks the page on the response actions history page/flyout It doesn't fix the other issues where when a tray is expanded and paging is used the page breaks. That is being worked on in elastic/kibana/pull/157777 ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --- .../hooks/response_actions/use_get_endpoint_action_list.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/security_solution/public/management/hooks/response_actions/use_get_endpoint_action_list.ts b/x-pack/plugins/security_solution/public/management/hooks/response_actions/use_get_endpoint_action_list.ts index 48fa0d5d9bacf..a7c1f563887db 100644 --- a/x-pack/plugins/security_solution/public/management/hooks/response_actions/use_get_endpoint_action_list.ts +++ b/x-pack/plugins/security_solution/public/management/hooks/response_actions/use_get_endpoint_action_list.ts @@ -40,6 +40,7 @@ export const useGetEndpointActionList = ( return useQuery>({ queryKey: ['get-action-list', query], ...options, + keepPreviousData: true, queryFn: async () => { return http.get(path, { query: {