From 9fb50e19f8df1b9771fa6ab76704766562ae0626 Mon Sep 17 00:00:00 2001 From: Julien Pinsonneau Date: Tue, 13 May 2025 16:19:33 +0200 Subject: [PATCH 1/2] show topology when expectedNodes is set --- .../components/tabs/netflow-topology/2d/topology-content.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/tabs/netflow-topology/2d/topology-content.tsx b/web/src/components/tabs/netflow-topology/2d/topology-content.tsx index 1e5b89cec..130b53f44 100644 --- a/web/src/components/tabs/netflow-topology/2d/topology-content.tsx +++ b/web/src/components/tabs/netflow-topology/2d/topology-content.tsx @@ -471,7 +471,7 @@ export const TopologyContent: React.FC = ({ useEventListener(graphLayoutEndEvent, onLayoutEnd); useEventListener(graphPositionChangeEvent, onLayoutPositionChange); - if (_.isEmpty(metrics) && _.isEmpty(droppedMetrics)) { + if (_.isEmpty(metrics) && _.isEmpty(droppedMetrics) && _.isEmpty(expectedNodes)) { return ( From d44a03ec4507c88696c9dce975b082381282ba79 Mon Sep 17 00:00:00 2001 From: Julien Pinsonneau Date: Mon, 26 May 2025 09:04:36 +0200 Subject: [PATCH 2/2] showEmpty default false --- web/src/model/topology.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/model/topology.ts b/web/src/model/topology.ts index 6936a6004..75036b6b8 100644 --- a/web/src/model/topology.ts +++ b/web/src/model/topology.ts @@ -71,7 +71,7 @@ export const DefaultOptions: TopologyOptions = { medScale: 0.5, metricFunction: defaultMetricFunction, metricType: defaultMetricType, - showEmpty: true + showEmpty: false }; export type GraphElementPeer = GraphElement;