send playerCount in payload directly instead of nesting into legacy data structure

This commit is contained in:
Nick Krecklow
2020-05-08 16:13:24 -05:00
parent 04d94a9461
commit 320dc3c2fb
4 changed files with 8 additions and 14 deletions

View File

@ -119,7 +119,7 @@ export class App {
// Set initial playerCount to the payload's value
// This will always exist since it is explicitly generated by the backend
// This is used for any post-add rendering of things like the percentageBar
serverRegistration.playerCount = payload.result.players.online
serverRegistration.playerCount = payload.playerCount
}
// Create the plot instance internally with the restructured and cleaned data