FlatFilers / platform-sdk-starter

Basic starter for platform sdk
5 stars 23 forks source link

fix: SmartDate handles null cases #89

Closed alexhollenbeck closed 1 year ago

alexhollenbeck commented 1 year ago

Closes https://github.com/FlatFilers/platform-sdk-mono/issues/251

This fixes the issue with SmartDateField by adding a check for null, undefined, and "" in SmartDateField's cast function. However, based on my understanding of how it is implemented, this should not be necessary if StringChainCast is working properly (and StringChainCast is not tested). I'll continue to investigate StringChainCast, if we need a fix out in the meantime we can merge this PR.

codesandbox[bot] commented 1 year ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders