Skip to content

TypeError: Cannot read property 'hasOwnProperty' of undefined #28

@anushkadoyan

Description

@anushkadoyan

When I use this schema I get this error:
TypeError: Cannot read property 'hasOwnProperty' of undefined

Same happens when I use other HTML natives like 'div', but my custom components work fine as JS literals. Am I doing something wrong?

    const hey = new ReactJsonSchema();

   const schema = {
        'component': "form",
        'children': [ 
            {
                'component': Row,
                'children': [
                    {
                    'component': Input,
                    'inColumn': true,
                    'label': 'What\'s your name',
                    'name': 'fullname',
                    'value': 'testing'
                    },
                    {
                    'component': Input,
                    'inColumn': true,
                    'label': 'hey',
                    'name': 'hey',
                    'value': 'hello'
                    }
                ],
            }
        ]
    }

     {hey.parseSchema(schema)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions