You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2022/06/01 19:56:29 UTC

[airavata-django-portal] branch develop updated: Fix null latestJobStatus bug

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/develop by this push:
     new 57e586a6 Fix null latestJobStatus bug
57e586a6 is described below

commit 57e586a6b176ed02c986013b636415df788794b2
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Jun 1 15:56:21 2022 -0400

    Fix null latestJobStatus bug
---
 .../src/components/statistics/ExperimentDetailsView.vue                | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentDetailsView.vue b/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentDetailsView.vue
index acd8a199..66f187b0 100644
--- a/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentDetailsView.vue
+++ b/django_airavata/apps/admin/static/django_airavata_admin/src/components/statistics/ExperimentDetailsView.vue
@@ -431,7 +431,8 @@ export default {
           (job) =>
             this.experiment.latestStatus.state ===
               models.ExperimentState.FAILED ||
-            job.latestJobStatus.jobState === models.JobState.FAILED
+            (job.latestJobStatus &&
+              job.latestJobStatus.jobState === models.JobState.FAILED)
         );
       } else {
         return [];