diff --git a/resources/assets/vue/components/general/elements/ListPollingComponent.vue b/resources/assets/vue/components/general/elements/ListPollingComponent.vue index ab1ed945..3cb55535 100644 --- a/resources/assets/vue/components/general/elements/ListPollingComponent.vue +++ b/resources/assets/vue/components/general/elements/ListPollingComponent.vue @@ -147,9 +147,9 @@ fetchJobResult(jobId, isLastAttempt = false) { this.$store.dispatch('updatePollingJobResultByJobId', {'jobId': this.getJob.jobId, 'isFetchingResult': true }); try { - let anotherEndpoint = route('api.job.fetch', jobId); + let anotherEndpoint = route('api.job.fetch', this.getJob.jobId); if(isLastAttempt){ - anotherEndpoint = route('api.job.fetch.last.attempt', jobId, isLastAttempt); + anotherEndpoint = route('api.job.fetch.last.attempt', this.getJob.jobId, isLastAttempt); } this.poll(anotherEndpoint, 'get', this.section, false, false); //cief todo: Uncaught (in promise) null } catch (error) {