Skip to content

Commit

Permalink
fix(tasklist): allow form submission with missing valuesKey vars
Browse files Browse the repository at this point in the history
related to CAM-14901
  • Loading branch information
tasso94 committed Sep 22, 2022
1 parent 7b5702e commit 147c670
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,16 @@ module.exports = [
valueInfo = variable.valueInfo;
} else {
const valuesKey = variableToValuesKeyMap[key];
const valuesKeyVariable = variables[valuesKey];

type = valuesKeyVariable.type;
valueInfo = valuesKeyVariable.valueInfo;
if (valuesKey) {
const valuesKeyVariable = variables[valuesKey];

if (valuesKeyVariable) {
type = valuesKeyVariable.type;
valueInfo = valuesKeyVariable.valueInfo;
} else {
type = 'Json';
}
}
}

res[key] = {
Expand Down

0 comments on commit 147c670

Please sign in to comment.