Skip to content

Commit

Permalink
Only pass relevant params
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Feb 14, 2024
1 parent 123262b commit c9a6d8b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ const HydrotestInput = props => {
data.codelistIds = [...data.codelistIds, ...data.evaluationMethodId];
}

if (data.hydrotestResults) {
data.hydrotestResults = data.hydrotestResults.map(r => {
return {
id: r.id,
parameterId: r.parameterId,
value: r.value,
minValue: r.minValue,
maxValue: r.maxValue,
};
});
}

if (data.casingId == null) {
data.casingId = item.casingId;
}
Expand Down

0 comments on commit c9a6d8b

Please sign in to comment.