fix nodes all showing offline
All checks were successful
Build Docker containers / Build (push) Successful in 42s

This commit is contained in:
2025-04-16 00:30:03 -04:00
parent 6554d270bc
commit bfdd6cba22

View File

@ -322,7 +322,7 @@ function onNodesUpdated(nodes) {
let icon = icons.mqttDisconnected; let icon = icons.mqttDisconnected;
// use offline icon for nodes older than configured node offline age // use offline icon for nodes older than configured node offline age
if (nodesOfflineAge) { if (nodesOfflineAge.value) {
const lastUpdatedAgeInMillis = now.diff(moment(node.updated_at)); const lastUpdatedAgeInMillis = now.diff(moment(node.updated_at));
if (lastUpdatedAgeInMillis > nodesOfflineAge.value * 1000) { if (lastUpdatedAgeInMillis > nodesOfflineAge.value * 1000) {
icon = icons.offline; icon = icons.offline;