Skip to content

Commit

Permalink
CU-8697vqqvt: Set.prototype.difference not availalbe on NHS MS Edge v…
Browse files Browse the repository at this point in the history
…ersions
  • Loading branch information
tomolopolis committed Feb 12, 2025
1 parent c1f0c2d commit 4a05a84
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions webapp/frontend/src/components/common/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,14 @@ export default {
pollDocPrepStatus () {
this.$http.get('/api/prep-docs-bg-tasks/').then(resp => {
this.completeBgTasks = new Set(resp.data.comp_tasks.map(d => d.project))
this.runningBgTasks = new Set([...this.runningBgTasks,
...resp.data.running_tasks.map(d => d.project)]).difference(this.completeBgTasks)
const newRunningTasks = new Set([
...this.runningBgTasks,
...resp.data.running_tasks.map(d => d.project)
])
for (const completedTask of this.completeBgTasks) {
newRunningTasks.delete(completedTask)
}
this.runningBgTasks = newRunningTasks
})
setTimeout(this.pollDocPrepStatus, 8000)
}
Expand Down

0 comments on commit 4a05a84

Please sign in to comment.