fix missing nodes, fix issue with traceroutes
All checks were successful
Build Docker containers / Build (push) Successful in 44s
All checks were successful
Build Docker containers / Build (push) Successful in 44s
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
const emit = defineEmits(['showTraceRoute']);
|
const emit = defineEmits(['showTraceRoute']);
|
||||||
|
import moment from 'moment';
|
||||||
import { state } from '../../store.js';
|
import { state } from '../../store.js';
|
||||||
import { findNodeById } from '../../utils.js';
|
import { findNodeById } from '../../utils.js';
|
||||||
</script>
|
</script>
|
||||||
|
@ -298,6 +298,10 @@ function onNodesUpdated(nodes) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add node to cache
|
||||||
|
state.nodes.push(node);
|
||||||
|
|
||||||
// skip nodes without position
|
// skip nodes without position
|
||||||
if (!node.latitude || !node.longitude) {
|
if (!node.latitude || !node.longitude) {
|
||||||
continue;
|
continue;
|
||||||
@ -365,8 +369,7 @@ function onNodesUpdated(nodes) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Push node and marker to cache
|
// Push node marker to cache
|
||||||
state.nodes.push(node);
|
|
||||||
state.nodeMarkers[node.node_id] = marker;
|
state.nodeMarkers[node.node_id] = marker;
|
||||||
|
|
||||||
// show node info tooltip when clicking node marker
|
// show node info tooltip when clicking node marker
|
||||||
|
Reference in New Issue
Block a user