mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: show detail chart when server is offline
This commit is contained in:
parent
f935d2b906
commit
17e2b4b596
@ -68,12 +68,6 @@ export default function ServerDetailChart({ server_id }: { server_id: string })
|
|||||||
return <ServerDetailChartLoading />
|
return <ServerDetailChartLoading />
|
||||||
}
|
}
|
||||||
|
|
||||||
const { online } = formatNezhaInfo(nezhaWsData.now, server)
|
|
||||||
|
|
||||||
if (!online) {
|
|
||||||
return <ServerDetailChartLoading />
|
|
||||||
}
|
|
||||||
|
|
||||||
const gpuStats = server.state.gpu || []
|
const gpuStats = server.state.gpu || []
|
||||||
const gpuList = server.host.gpu || []
|
const gpuList = server.host.gpu || []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user