From 44582732bb178bd375ab03c4937d2591ed15e1a0 Mon Sep 17 00:00:00 2001 From: andres-portainer <91705312+andres-portainer@users.noreply.github.com> Date: Wed, 15 Mar 2023 15:16:41 -0300 Subject: [PATCH] fix(home): exclude snapshots from the home page to improve the loading times EE-5154 (#8626) --- app/portainer/views/auth/authController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/portainer/views/auth/authController.js b/app/portainer/views/auth/authController.js index da92669ae..a03e19109 100644 --- a/app/portainer/views/auth/authController.js +++ b/app/portainer/views/auth/authController.js @@ -130,7 +130,7 @@ class AuthenticationController { async checkForEndpointsAsync() { try { const isAdmin = this.Authentication.isAdmin(); - const endpoints = await getEnvironments({ limit: 1 }); + const endpoints = await getEnvironments({ limit: 1, query: { excludeSnapshots: true } }); if (this.Authentication.getUserDetails().forceChangePassword) { return this.$state.go('portainer.account');