mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-17 19:16:25 +00:00
Update system-overview.tsx
This commit is contained in:
@@ -237,7 +237,7 @@ export function SystemOverview() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchAllData = async () => {
|
const fetchAllData = async () => {
|
||||||
const [systemResult, vmResult, storageResult, proxmoxStorageResult, networkResult] = await Promise.all([
|
const [systemResult, vmResult, storageResults, networkResult] = await Promise.all([
|
||||||
fetchSystemData().finally(() => setLoadingStates((prev) => ({ ...prev, system: false }))),
|
fetchSystemData().finally(() => setLoadingStates((prev) => ({ ...prev, system: false }))),
|
||||||
fetchVMData().finally(() => setLoadingStates((prev) => ({ ...prev, vms: false }))),
|
fetchVMData().finally(() => setLoadingStates((prev) => ({ ...prev, vms: false }))),
|
||||||
Promise.all([fetchStorageData(), fetchProxmoxStorageData()]).finally(() =>
|
Promise.all([fetchStorageData(), fetchProxmoxStorageData()]).finally(() =>
|
||||||
@@ -253,8 +253,8 @@ export function SystemOverview() {
|
|||||||
|
|
||||||
setSystemData(systemResult)
|
setSystemData(systemResult)
|
||||||
setVmData(vmResult)
|
setVmData(vmResult)
|
||||||
setStorageData(storageResult[0])
|
setStorageData(storageResults[0])
|
||||||
setProxmoxStorageData(storageResult[1])
|
setProxmoxStorageData(storageResults[1])
|
||||||
setNetworkData(networkResult)
|
setNetworkData(networkResult)
|
||||||
|
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user