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 2019/11/12 17:38:14 UTC

[airavata-django-portal] branch master updated: AIRAVATA-3253 Handle invalid data product URI

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 03e46ff  AIRAVATA-3253 Handle invalid data product URI
03e46ff is described below

commit 03e46ff77a086a0a4d7a722c41e27f2bfd899b95
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Nov 12 12:35:50 2019 -0500

    AIRAVATA-3253 Handle invalid data product URI
---
 .../js/components/experiment/input-editors/FileInputEditor.vue      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue
index 71ffc8d..52c0c39 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue
@@ -103,7 +103,11 @@ export default {
     loadDataProduct(dataProductURI) {
       services.DataProductService.retrieve({ lookup: dataProductURI }).then(
         dataProduct => (this.dataProduct = dataProduct)
-      );
+      ).catch(() => {
+        // If we're unable to load data product, reset data to null
+        this.data = null;
+        this.valueChanged();
+      });
     },
     deleteDataProduct() {
       utils.FetchUtils.delete(