mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-11 02:48:22 +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 PlayersOnlineTab = () => {
|
||||||
const {serverUUID, networkMetadata} = useMetadata();
|
const {serverUUID, networkMetadata} = useMetadata();
|
||||||
|
|
||||||
|
if (!networkMetadata) return <ChartLoader/>
|
||||||
|
|
||||||
if (networkMetadata.usingRedisBungee || networkMetadata.servers.filter(server => server.proxy).length === 1) {
|
if (networkMetadata.usingRedisBungee || networkMetadata.servers.filter(server => server.proxy).length === 1) {
|
||||||
return <SingleProxyPlayersOnlineGraph serverUUID={serverUUID}/>
|
return <SingleProxyPlayersOnlineGraph serverUUID={serverUUID}/>
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user