Skip to content

Since v1, resetForm throws error #41

@adrienharnay

Description

@adrienharnay

Hey,

Since upgrading to v1 (1.1.1 to be precise), I have this error when calling resetForm:

TypeError: Cannot read property 'inputs' of undefined
    at resetModel (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/formsy-react/lib/index.js?:221:12)
    at eval (webpack:///./client/src/common/user-details/js/DisplayCreateUserStates/components/CreateUserState.js?:95:9)
    at _callee2$ (webpack:///./client/src/action-creators/jobSeeker/states.js?:196:17)
    at tryCatch (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/regenerator-runtime/runtime.js?:65:40)
    at Generator.invoke [as _invoke] (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/regenerator-runtime/runtime.js?:299:22)
    at Generator.prototype.(anonymous function) [as next] (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/regenerator-runtime/runtime.js?:117:21)
    at step (webpack:///./client/src/action-creators/jobSeeker/states.js?:21:221)
    at _next (webpack:///./client/src/action-creators/jobSeeker/states.js?:21:409)
    at <anonymous>

Everything works as expected though. Maybe something was broken in the big update?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions