From c4d32fe8d318ec7b02554025e1a459a97ab28777 Mon Sep 17 00:00:00 2001 From: Patryk Kopycinski Date: Fri, 4 Sep 2020 13:38:24 +0200 Subject: [PATCH] fix IDs --- .../public/network/containers/network_top_countries/index.tsx | 4 +--- .../public/network/containers/network_top_n_flow/index.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/security_solution/public/network/containers/network_top_countries/index.tsx b/x-pack/plugins/security_solution/public/network/containers/network_top_countries/index.tsx index 6bed779d49638..747f5e4f502dd 100644 --- a/x-pack/plugins/security_solution/public/network/containers/network_top_countries/index.tsx +++ b/x-pack/plugins/security_solution/public/network/containers/network_top_countries/index.tsx @@ -50,14 +50,12 @@ interface UseNetworkTopCountries { endDate: string; startDate: string; skip: boolean; - id?: string; } export const useNetworkTopCountries = ({ endDate, filterQuery, flowTarget, - id = ID, skip, startDate, type, @@ -101,7 +99,7 @@ export const useNetworkTopCountries = ({ NetworkTopCountriesArgs >({ networkTopCountries: [], - id: ID, + id: `${ID}-${flowTarget}`, inspect: { dsl: [], response: [], diff --git a/x-pack/plugins/security_solution/public/network/containers/network_top_n_flow/index.tsx b/x-pack/plugins/security_solution/public/network/containers/network_top_n_flow/index.tsx index 6663ad610af06..cc0da816c57ec 100644 --- a/x-pack/plugins/security_solution/public/network/containers/network_top_n_flow/index.tsx +++ b/x-pack/plugins/security_solution/public/network/containers/network_top_n_flow/index.tsx @@ -50,14 +50,12 @@ interface UseNetworkTopNFlow { endDate: string; startDate: string; skip: boolean; - id?: string; } export const useNetworkTopNFlow = ({ endDate, filterQuery, flowTarget, - id = ID, skip, startDate, type, @@ -99,7 +97,7 @@ export const useNetworkTopNFlow = ({ const [networkTopNFlowResponse, setNetworkTopNFlowResponse] = useState({ networkTopNFlow: [], - id: ID, + id: `${ID}-${flowTarget}`, inspect: { dsl: [], response: [],