diff --git a/webui/html/index.html b/webui/html/index.html
index 69c3225..58bdec7 100644
--- a/webui/html/index.html
+++ b/webui/html/index.html
@@ -620,9 +620,10 @@
try {
if (currentTab === 'containers') await fetchContainers();
else {
- const [pods, containers] = await Promise.all([
+ const [pods, containers, networks] = await Promise.all([
api('/pods-dashboard','GET'),
- api('/containers-dashboard','GET')
+ api('/containers-dashboard','GET'),
+ api('/networks','GET').catch(() => ({ networks: [] }))
]);
document.getElementById('countPods').textContent = (pods || []).length;
@@ -630,6 +631,8 @@
const cCount = list.length;
document.getElementById('countContainers').textContent = cCount;
updateNavCount('countNavContainers', cCount);
+ const nCount = Array.isArray(networks?.networks) ? networks.networks.length : 0;
+ updateNavCount('countNavNetworks', nCount);
}
setApiState(true, 'API: OK');
setLastRefreshNow();