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/05/24 13:53:54 UTC

[airavata-django-portal] 02/02: 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

commit 3c4036d9d9970af84f06b2d097422bfd172137d4
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon May 23 17:36:59 2022 -0400

    Fix null latestJobStatus bug
---
 .../js/components/experiment/ExperimentSummary.vue                     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
index 5e8c29ca..903baa93 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
@@ -396,7 +396,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 [];