Skip to content

Commit

Permalink
Fix for semantic check complaining when resetting numeric field to em…
Browse files Browse the repository at this point in the history
…pty string (#3526)

* Return undefined when numeric field is empty string.

* Remove extraneous console call.
  • Loading branch information
dlaliberte authored Dec 4, 2023
1 parent 22774fe commit da78e19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client-src/elements/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ export function checkMilestoneStartEnd(startEndPair, getFieldValue) {
const getValue = (name) => {
const value = getFieldValue(name);
if (typeof value === 'string') {
if (value === '') return undefined;
return Number(value);
}
};
Expand Down

0 comments on commit da78e19

Please sign in to comment.