Skip to content

Commit

Permalink
fix fetchOverview default query condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Sep 29, 2023
1 parent 317f1c0 commit 15babbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/components/netflow-traffic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,11 @@ export const NetflowTraffic: React.FC<{

const promises: Promise<Stats>[] = [];

if (!selectedPanels.some(p => [DROPPED_ID_MATCHER, DNS_ID_MATCHER, RTT_ID_MATCHER].includes(p.id))) {
if (
selectedPanels.some(
p => !p.id.includes(DROPPED_ID_MATCHER) && !p.id.includes(DNS_ID_MATCHER) && !p.id.includes(RTT_ID_MATCHER)
)
) {
promises.push(
...[
//get bytes or packets
Expand Down

0 comments on commit 15babbe

Please sign in to comment.