mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(ui): namespace cache refresh on reload EE-5155 (#8644)
This commit is contained in:
parent
44582732bb
commit
6ee5cc6a56
9 changed files with 28 additions and 15 deletions
|
@ -284,7 +284,8 @@ class KubernetesDeployController {
|
|||
async getNamespacesAsync() {
|
||||
try {
|
||||
const pools = await this.KubernetesResourcePoolService.get();
|
||||
const namespaces = _.map(pools, 'Namespace').sort((a, b) => {
|
||||
let namespaces = pools.filter((pool) => pool.Namespace.Status === 'Active');
|
||||
namespaces = _.map(namespaces, 'Namespace').sort((a, b) => {
|
||||
if (a.Name === 'default') {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue