mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 09:37:54 +01:00
Fix networkMetadata read before it is loaded
This commit is contained in:
parent
6179f6cbe5
commit
5060ad25d8
@ -33,6 +33,8 @@ const MultiProxyPlayersOnlineGraph = () => {
|
||||
const PlayersOnlineTab = () => {
|
||||
const {serverUUID, networkMetadata} = useMetadata();
|
||||
|
||||
if (!networkMetadata) return <ChartLoader/>
|
||||
|
||||
if (networkMetadata.usingRedisBungee || networkMetadata.servers.filter(server => server.proxy).length === 1) {
|
||||
return <SingleProxyPlayersOnlineGraph serverUUID={serverUUID}/>
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user