fix reports not changing states

This commit is contained in:
Henry Jameson 2025-03-05 02:32:25 +02:00
commit 0190a698db

View file

@ -32,7 +32,7 @@ export const useReportsStore = defineStore('reports', {
this.reportModal.activated = false
},
setReportState ({ id, state }) {
const oldState = window.vuex.state.reports.reports[id].state
const oldState = this.reports[id].state
this.reports[id].state = state
window.vuex.state.api.backendInteractor.setReportState({ id, state }).catch(e => {
console.error('Failed to set report state', e)