Skip to content

Commit

Permalink
fix: zniffer frequency empty on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed May 15, 2024
1 parent 6da5c62 commit 6a36905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/stores/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ const useBaseStore = defineStore('base', {
this.appInfo.newConfigVersion = data.newConfigVersion
},
setZnifferState(data) {
this.znifferState.error = data?.error ?? ''
this.znifferState.started = data?.started ?? false
this.znifferState.frequency = data?.frequency ?? false
this.znifferState = {
...this.znifferState,
...data,
}
},
setValue(valueId) {
const toReplace = this.getValue(valueId)
Expand Down
4 changes: 1 addition & 3 deletions src/views/Zniffer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,7 @@ export default {
}
},
znifferState(state) {
if (state?.frequency) {
this.frequency = state.frequency
}
this.frequency = state.frequency ?? null
},
search(v) {
if (this.searchTimeout) {
Expand Down

0 comments on commit 6a36905

Please sign in to comment.