Skip to content

Commit

Permalink
fix: passing 0 to nonOrchardPollenContam field, when no value is dete…
Browse files Browse the repository at this point in the history
…cted
  • Loading branch information
mgaseta committed Oct 22, 2024
1 parent 93bb65b commit 81d86f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class ParentTreeService {
//CHECKSTYLE:OFF: VariableDeclarationUsageDistance
public PtCalculationResDto calculatePtVals(PtValsCalReqDto ptVals) {
SparLog.info(
"Started calculation for parent tree contribution values. Number of rchard parent received:"
"Started calculation for parent tree contribution values. Number of orchard parent received:"
+ " {}. Number of SMP mix parent tree received: {}.",
ptVals.orchardPtVals().size(),
ptVals.smpMixIdAndProps().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,10 @@ export const generatePtValCalcPayload = (
coneCount: Number(row.coneCount.value),
pollenCount: Number(row.pollenCount.value),
smpSuccessPerc: Number(row.smpSuccessPerc.value),
nonOrchardPollenContamPct: Number(row.nonOrchardPollenContam.value),
nonOrchardPollenContamPct:
row.nonOrchardPollenContam.value
? Number(row.nonOrchardPollenContam.value)
: 0,
geneticTraits: []
};
// Populate geneticTraits array
Expand Down

0 comments on commit 81d86f1

Please sign in to comment.