This commit is contained in:
Roslund
2025-03-29 07:19:11 +00:00
parent 7f6c4bd54e
commit d594951632
+3
View File
@@ -37,6 +37,9 @@ document.addEventListener("DOMContentLoaded", async function () {
new Map(data.text_messages.map(msg => [msg.packet_id, msg])).values()
);
// Sort the messages, for some reason with multiple mqtt gateways they are unsorted.
state.messages.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
// fetch node info
for(const message of state.messages){
await fetchNodeInfo(message.to);