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 Object-like data without hasOwnProperty #2177

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Fix for Object-like data without hasOwnProperty #2177

merged 1 commit into from
Jan 7, 2020

Conversation

emrosenf
Copy link
Contributor

@emrosenf emrosenf commented Jan 7, 2020

Closes #2138

From time to time, Formik may be passed Object-like
data that does not inherit from the Object prototype.
In these cases, hasOwnProperty is not defined, and
prepareDataForValidation will throw.

The fix is to use Object.prototype to call
hasOwnProperty on the data.

See urql-graphql/urql#343

Closes #2138

From time to time, Formik may be passed Object-like
data that does not inherit from the Object prototype.
In these cases, hasOwnProperty is not defined, and
prepareDataForValidation will throw.

The fix is to use Object.prototype to call
hasOwnProperty on the data.

See urql-graphql/urql#343
@vercel
Copy link

vercel bot commented Jan 7, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 7, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 888744e:

Sandbox Source
Formik TypeScript Playground Configuration

@jaredpalmer jaredpalmer merged commit ed0663d into jaredpalmer:master Jan 7, 2020
@emrosenf emrosenf deleted the patch-1 branch January 13, 2020 20:41
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.

values.hasOwnProperty is not a function in v2
2 participants