From d72f0779b64292427aca0939c29a3e9a02772687 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 31 Jan 2022 16:50:40 +0900 Subject: [PATCH] fix federation widget --- packages/client/src/widgets/federation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/widgets/federation.vue b/packages/client/src/widgets/federation.vue index 31d2b7d2e..5f1131dce 100644 --- a/packages/client/src/widgets/federation.vue +++ b/packages/client/src/widgets/federation.vue @@ -58,7 +58,7 @@ const fetch = async () => { sort: '+lastCommunicatedAt', limit: 5 }); - const fetchedCharts = await Promise.all(instances.map(i => os.api('charts/instance', { host: i.host, limit: 16, span: 'hour' }))); + const fetchedCharts = await Promise.all(fetchedInstances.map(i => os.api('charts/instance', { host: i.host, limit: 16, span: 'hour' }))); instances.value = fetchedInstances; charts.value = fetchedCharts; fetching.value = false;