From 3eefd57e7994a180a171c9269bb9d9e61ab1456c Mon Sep 17 00:00:00 2001 From: Ran Byron Date: Thu, 24 Jan 2019 11:08:35 +0200 Subject: [PATCH] Fixed default value for non-static value data --- client/app/components/ParameterMappingInput.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/app/components/ParameterMappingInput.jsx b/client/app/components/ParameterMappingInput.jsx index 813bc6c441..3ea8fa8acb 100644 --- a/client/app/components/ParameterMappingInput.jsx +++ b/client/app/components/ParameterMappingInput.jsx @@ -336,7 +336,10 @@ export class ParameterMappingListInput extends React.Component { } static getDefaultValue(mapping) { - const value = mapping.value || mapping.param.value; + const value = mapping.type === MappingType.StaticValue + ? mapping.value || mapping.param.value + : mapping.param.value; + return this.getStringValue(value); }