Skip to content

Commit e2c05b3

Browse files
committed
schema compatibility strategy fix
1 parent 1436593 commit e2c05b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dashboard/src/components/namespaces/NamespaceOverviewTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ export default {
618618
const newStrat = this.namespacesConfig.data[this.$route.params.id].schema_compatibility_strategy
619619
620620
if (!newStrat || newStrat === 'UNDEFINED') {
621-
return oldStrat.toUpperCase()
621+
return oldStrat ? oldStrat.toUpperCase() : 'UNDEFINED'
622622
}
623623
return newStrat
624624
}

dashboard/src/store/modules/pulsar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ const actions = {
12791279
const newStrat = state.namespacesConfig.data[nsIdx].schema_compatibility_strategy
12801280

12811281
if (!newStrat || newStrat === 'UNDEFINED') {
1282-
compatMode = oldStrat.toUpperCase()
1282+
compatMode = oldStrat ? oldStrat.toUpperCase() : 'UNDEFINED'
12831283
} else {
12841284
compatMode = newStrat
12851285
}

0 commit comments

Comments
 (0)