[SIEM] unique table id for each top talkers table (#45014) (#45234)

This commit is contained in:
Steph Milovic 2019-09-10 07:39:32 -06:00 committed by GitHub
parent 9e0a53b14d
commit b7365c11bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ class NetworkTopNFlowComponentQuery extends QueryTemplatePaginated<
endDate,
flowTarget,
filterQuery,
id = ID,
id = `${ID}-${flowTarget}`,
isInspected,
limit,
skip,
@ -132,7 +132,7 @@ class NetworkTopNFlowComponentQuery extends QueryTemplatePaginated<
}
}
const mapStateToProps = (state: State, { flowTarget, id = ID }: OwnProps) => {
const mapStateToProps = (state: State, { flowTarget, id = `${ID}-${flowTarget}` }: OwnProps) => {
const getNetworkTopNFlowSelector = networkSelectors.topNFlowSelector(flowTarget);
const getQuery = inputsSelectors.globalQueryByIdSelector();
const { isInspected } = getQuery(state, id);