Fix Kubernetes cluster listing when user is unable to scale (#9867)

Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
This commit is contained in:
Henrique Sato 2024-11-07 06:12:15 -03:00 committed by GitHub
parent 9ae5b6a999
commit a6e9aec769
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -537,7 +537,7 @@ export default {
if (store.listAllProjects) { if (store.listAllProjects) {
fields.push('project') fields.push('project')
} }
if (store.apis.scaleKubernetesCluster.params.filter(x => x.name === 'autoscalingenabled').length > 0) { if (store.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'autoscalingenabled').length > 0) {
fields.splice(2, 0, 'autoscalingenabled') fields.splice(2, 0, 'autoscalingenabled')
} }
fields.push('zonename') fields.push('zonename')

View File

@ -278,7 +278,7 @@ export default {
} }
}, },
mounted () { mounted () {
if (this.$store.getters.apis.scaleKubernetesCluster.params.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') { if (this.$store.getters.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') {
this.vmColumns.push({ this.vmColumns.push({
key: 'actions', key: 'actions',
title: this.$t('label.actions'), title: this.$t('label.actions'),