From 00cd62dbe0c499b4ab84b11ad06c522ee641727c Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Tue, 7 Jan 2025 09:54:30 -0700 Subject: [PATCH] Ensure a job is present before requesting it's packets --- html/js/routes/job.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/js/routes/job.js b/html/js/routes/job.js index 634411fa..cd5d38b6 100644 --- a/html/js/routes/job.js +++ b/html/js/routes/job.js @@ -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: {