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 2021/10/05 19:47:34 UTC

[airavata-django-portal] 23/24: AIRAVATA-3477 add backwards compat for updateInputValue

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 9aeecfc3b0e56339c658acf3f71eabab0107aa1b
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Oct 5 15:46:37 2021 -0400

    AIRAVATA-3477 add backwards compat for updateInputValue
---
 .../django_airavata_workspace/js/web-components/ExperimentEditor.vue  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue
index e235303..4377ca0 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue
@@ -220,7 +220,9 @@ export default {
       // native input events have the current value in target.value
       const value = Array.isArray(event.detail)
         ? event.detail[0]
-        : event.target.value;
+        : event.target // Backwards compatibility: second argument changed from the value to the 'event'
+        ? event.target.value
+        : event;
       this.$store.dispatch("updateExperimentInputValue", { inputName, value });
     },
     updateProjectId(event) {