mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
filter empty stacks in dropdown (#5771)
filter empty stacks in dropdown (#5771)
This commit is contained in:
parent
7fb2e44146
commit
fbcf67bc1e
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class KubernetesStackService {
|
||||||
async getAllAsync(namespace) {
|
async getAllAsync(namespace) {
|
||||||
const applications = await this.KubernetesApplicationService.get(namespace);
|
const applications = await this.KubernetesApplicationService.get(namespace);
|
||||||
const stacks = _.map(applications, (item) => item.StackName);
|
const stacks = _.map(applications, (item) => item.StackName);
|
||||||
return _.uniq(_.without(stacks, '-'));
|
return _.uniq(_.without(stacks, '-', ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
get(namespace) {
|
get(namespace) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue