filter empty stacks in dropdown (#5771)

filter empty stacks in dropdown (#5771)
pull/5800/head
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
1 changed files with 1 additions and 1 deletions

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) {