fix(home): exclude snapshots from the home page to improve the loading times EE-5154 (#8626)

pull/8674/head
andres-portainer 2023-03-15 15:16:41 -03:00 committed by GitHub
parent ea03024fbc
commit 44582732bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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');