Skip to content

Commit

Permalink
Fixed default value for non-static value data
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbena committed Jan 24, 2019
1 parent 48743c7 commit 3eefd57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/app/components/ParameterMappingInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3eefd57

Please sign in to comment.