Skip to content

Commit

Permalink
schema compatibility strategy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mfortman11 committed Jun 13, 2022
1 parent 1436593 commit e2c05b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ export default {
const newStrat = this.namespacesConfig.data[this.$route.params.id].schema_compatibility_strategy

if (!newStrat || newStrat === 'UNDEFINED') {
return oldStrat.toUpperCase()
return oldStrat ? oldStrat.toUpperCase() : 'UNDEFINED'
}
return newStrat
}
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/store/modules/pulsar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ const actions = {
const newStrat = state.namespacesConfig.data[nsIdx].schema_compatibility_strategy

if (!newStrat || newStrat === 'UNDEFINED') {
compatMode = oldStrat.toUpperCase()
compatMode = oldStrat ? oldStrat.toUpperCase() : 'UNDEFINED'
} else {
compatMode = newStrat
}
Expand Down

0 comments on commit e2c05b3

Please sign in to comment.