This commit is contained in:
Douglas Barone 2023-02-13 09:50:12 -04:00
parent 870c6b079e
commit 58077874c6

View File

@ -68,5 +68,10 @@ async function getStatsUsingAccessPointId(keys) {
}
})
return accessPointsWithStats
// order accessPointsWithStats in the same order as keys
const accessPointsWithStatsOrdered = ids.map(id =>
accessPointsWithStats.find(accessPoint => accessPoint.id === id)
)
return accessPointsWithStatsOrdered
}