Skip to content

Commit

Permalink
Allow 0 values in Morecast (#3612)
Browse files Browse the repository at this point in the history
- Allows 0 values to be entered into Morecast
Co-authored-by: Darren Boss <darren.boss@gov.bc.ca>
  • Loading branch information
brettedw authored May 10, 2024
1 parent 4933335 commit 89e2637
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class GridComponentRenderer {
precision: number
) => {
const oldValue = params.row[field].value
const newValue = params.value ? Number(params.value) : NaN
const newValue = isNaN(params.value) ? NaN : Number(params.value)

if (isNaN(oldValue) && isNaN(newValue)) {
return { ...params.row }
Expand Down

0 comments on commit 89e2637

Please sign in to comment.