From 5c69ff33390c04de807b8b8f84baba5edc3b97fd Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 28 Sep 2022 10:59:58 +0200 Subject: [PATCH] fix: do not get status of more than 10 resources defined by category --- apps/ui/src/routes/index.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ui/src/routes/index.svelte b/apps/ui/src/routes/index.svelte index b8e2fa2f7..03584247a 100644 --- a/apps/ui/src/routes/index.svelte +++ b/apps/ui/src/routes/index.svelte @@ -127,15 +127,15 @@ async function getStatus(resources: any, force: boolean = false) { const { id, buildPack, dualCerts, type } = resources; - if (buildPack && applications.length > 10 && !force) { + if (buildPack && applications.length + filtered.otherApplications.length > 10 && !force) { noInitialStatus.applications = true; return; } - if (type && services.length > 10 && !force) { + if (type && services.length + filtered.otherServices.length > 10 && !force) { noInitialStatus.services = true; return; } - if (databases.length > 10 && !force) { + if (databases.length + filtered.otherDatabases.length > 10 && !force) { noInitialStatus.databases = true; return; }