mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Ensure k8s views are correctly hidden.
- Filter unconnected psuedo nodes from the Pods view - Don't report these filtered nodes in stats - Fix typo in logic for hiding views
This commit is contained in:
@@ -55,6 +55,6 @@ export function setTopologyUrlsById(topologyUrlsById, topologies) {
|
||||
}
|
||||
|
||||
export function filterHiddenTopologies(topologies) {
|
||||
return topologies.filter(t => (!t.hidden_if_empty || t.stats.node_count > 0 ||
|
||||
return topologies.filter(t => (!t.hide_if_empty || t.stats.node_count > 0 ||
|
||||
t.stats.filtered_nodes > 0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user