Commit 06275b15 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

FIX: double error on macfinder logout

parent 4fd9f4f0
Pipeline #160417 passed with stages
in 8 minutes and 1 second
......@@ -121,10 +121,14 @@ export default {
return i.name
},
async refresh() {
const jobs = await MacfinderService.getJobs()
this.jobs = []
for (const job in jobs.data.jobs) {
this.jobs.push(jobs.data.jobs[job])
try {
const jobs = await MacfinderService.getJobs()
this.jobs = []
for (const job in jobs.data.jobs) {
this.jobs.push(jobs.data.jobs[job])
}
} catch (e) {
window.log('Error on poll. Ignore')
}
},
async createJob(ev) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment