Skip to content

Commit

Permalink
DataExtractor: clear items list when switching between cmd/tlm
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-pratt committed Dec 16, 2024
1 parent 4b0f8f5 commit d097de9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,11 @@ export default {
this.saveDefaultConfig(this.currentConfig)
},
cmdOrTlm: function () {
this.saveDefaultConfig(this.currentConfig)
if (this.items.length === 0) { // just to prevent the save from happening twice
this.saveDefaultConfig(this.currentConfig)
} else {
this.items = []
}
},
items: {
handler: function () {
Expand Down

0 comments on commit d097de9

Please sign in to comment.