Skip to content

Providing schema along with ajv instance in "tree" mode breaks the JsonEditor react component #101

@UtkarshChugh1998

Description

@UtkarshChugh1998

I was trying to test out the validation in "tree" mode of JsonEditor react, as per the example below:

CodeSandbox:

https://codesandbox.io/p/sandbox/confident-currying-l2v2ht?file=%2Fsrc%2FApp.js%3A16%2C23

It gave the below error in console.
TypeError: Cannot read properties of undefined (reading '0')

The root.findNode(error.dataPath) invocation passes error.dataPath as undefined.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions