Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dispatch/static/dispatch/src/case/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ const actions = {
.then((response) => {
commit("SET_SELECTED", response.data)
commit("SET_SELECTED_LOADING", false)
this.interval = setInterval(function () {
var interval = setInterval(function () {
if (state.selected.id) {
dispatch("get")
}

// TODO this is fragile but we don't set anything as "created"
if (state.selected.conversation) {
clearInterval(this.interval)
clearInterval(interval)
}
}, 5000)
})
Expand Down
Loading