1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

filter empty stacks in dropdown (#5771)

filter empty stacks in dropdown (#5771)
This commit is contained in:
Marcelo Rydel 2021-09-30 09:32:38 -03:00 committed by GitHub
parent 7fb2e44146
commit fbcf67bc1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ class KubernetesStackService {
async getAllAsync(namespace) {
const applications = await this.KubernetesApplicationService.get(namespace);
const stacks = _.map(applications, (item) => item.StackName);
return _.uniq(_.without(stacks, '-'));
return _.uniq(_.without(stacks, '-', ''));
}
get(namespace) {