fix missing nodes, fix issue with traceroutes
All checks were successful
Build Docker containers / Build (push) Successful in 44s

This commit is contained in:
2025-04-16 00:37:24 -04:00
parent bfdd6cba22
commit 8497053aed
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<script setup>
const emit = defineEmits(['showTraceRoute']);
import moment from 'moment';
import { state } from '../../store.js';
import { findNodeById } from '../../utils.js';
</script>

View File

@ -298,6 +298,10 @@ function onNodesUpdated(nodes) {
continue;
}
}
// add node to cache
state.nodes.push(node);
// skip nodes without position
if (!node.latitude || !node.longitude) {
continue;
@ -365,8 +369,7 @@ function onNodesUpdated(nodes) {
});
}
// Push node and marker to cache
state.nodes.push(node);
// Push node marker to cache
state.nodeMarkers[node.node_id] = marker;
// show node info tooltip when clicking node marker