Skip to content

Commit 217e7db

Browse files
hsato03Henrique Sato
authored andcommitted
Fix Kubernetes cluster listing when user is unable to scale (apache#9867)
Co-authored-by: Henrique Sato <[email protected]>
1 parent 2aa6b52 commit 217e7db

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
@@ -628,7 +628,7 @@ export default {
628628
if (store.listAllProjects) {
629629
fields.push('project')
630630
}
631-
if (store.apis.scaleKubernetesCluster.params.filter(x => x.name === 'autoscalingenabled').length > 0) {
631+
if (store.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'autoscalingenabled').length > 0) {
632632
fields.splice(2, 0, 'autoscalingenabled')
633633
}
634634
fields.push('zonename')

ui/src/views/compute/KubernetesServiceTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default {
284284
}
285285
},
286286
mounted () {
287-
if (this.$store.getters.apis.scaleKubernetesCluster.params.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') {
287+
if (this.$store.getters.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') {
288288
this.vmColumns.push({
289289
key: 'actions',
290290
title: this.$t('label.actions'),

0 commit comments

Comments
 (0)