Skip to content

Commit

Permalink
Ensure a job is present before requesting it's packets
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyogburn committed Jan 7, 2025
1 parent 6307a48 commit 00cd62d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions html/js/routes/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ routes.push({ path: '/job/:jobId', name: 'job', component: {
setTimeout(function() { route.loadPackets(unwrap); }, 0); // run async to this event
},
async loadPackets(unwrap) {
if (!this.job || !this.job.id) return;

this.packetsLoading = true;
try {
const response = await this.$root.papi.get('packets', { params: {
Expand Down

0 comments on commit 00cd62d

Please sign in to comment.