Skip to content

Commit 977bb90

Browse files
author
Henrique Sato
committed
Fix Kubernetes cluster listing when user is unable to scale
1 parent 7fbd0a9 commit 977bb90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/src/config/section/compute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ export default {
537537
if (store.listAllProjects) {
538538
fields.push('project')
539539
}
540-
if (store.apis.scaleKubernetesCluster.params.filter(x => x.name === 'autoscalingenabled').length > 0) {
540+
if (store.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'autoscalingenabled').length > 0) {
541541
fields.splice(2, 0, 'autoscalingenabled')
542542
}
543543
fields.push('zonename')

ui/src/views/compute/KubernetesServiceTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export default {
278278
}
279279
},
280280
mounted () {
281-
if (this.$store.getters.apis.scaleKubernetesCluster.params.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') {
281+
if (this.$store.getters.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') {
282282
this.vmColumns.push({
283283
key: 'actions',
284284
title: this.$t('label.actions'),

0 commit comments

Comments
 (0)