Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for semantic check complaining when resetting numeric field to empty string #3526

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

dlaliberte
Copy link
Collaborator

This PR fixes #3525 by checking for empty string explicitly to return an undefined value rather than converting it to 0.

@dlaliberte dlaliberte requested a review from jrobbins December 2, 2023 16:57
Copy link
Collaborator

@jrobbins jrobbins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after addressing one comment.

return Number(value);
}
};
const {start, end} = startEndPair;
const startMilestone = getValue(start);
const endMilestone = getValue(end);
console.info(`after getValue: start: ${startMilestone} end: ${endMilestone}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this console output still needed?

@dlaliberte dlaliberte merged commit da78e19 into main Dec 4, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Once a milestone range is set, it cannot be cleared
2 participants