You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be reasonable to expect these transformers to return undefined in the event the input data is not truthy and/or possibly when the string is not a valid format -- moment(date_string).isValid === false?
The text was updated successfully, but these errors were encountered:
that sounds reasonable ... the "1970-01-01" only makes sense to a developer
since this function is for the mapping context, I think it makes sense for it to return undefined.
It looks like the dateTransforms may not be handling null or undefined input as expected.
Given the following test-case:
The dateTransformer returns '1970-01-01'.
Would it be reasonable to expect these transformers to return undefined in the event the input data is not truthy and/or possibly when the string is not a valid format --
moment(date_string).isValid === false
?The text was updated successfully, but these errors were encountered: