fix reports not changing states
This commit is contained in:
parent
aa6b390a6f
commit
0190a698db
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ export const useReportsStore = defineStore('reports', {
|
||||||
this.reportModal.activated = false
|
this.reportModal.activated = false
|
||||||
},
|
},
|
||||||
setReportState ({ id, state }) {
|
setReportState ({ id, state }) {
|
||||||
const oldState = window.vuex.state.reports.reports[id].state
|
const oldState = this.reports[id].state
|
||||||
this.reports[id].state = state
|
this.reports[id].state = state
|
||||||
window.vuex.state.api.backendInteractor.setReportState({ id, state }).catch(e => {
|
window.vuex.state.api.backendInteractor.setReportState({ id, state }).catch(e => {
|
||||||
console.error('Failed to set report state', e)
|
console.error('Failed to set report state', e)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue