Skip to content

Error with null values #1

@jobelenus

Description

@jobelenus

I'm seeing when a JSON object has nulls as values for keys that the plugin throws errors. The specific error it throws is: "Invalid prop: type check failed for prop "content". Expected Object, got Null". I've been able to fix it by replacing the NestedDl template line:

+"<nested-list v-bind:content='value' v-bind:max-length='maxLength'></nested-list>"

With

+"<nested-list v-bind:content='value || \"\"' v-bind:max-length='maxLength'></nested-list>"

You may prefer a different solution but I wanted to let you know of the bug anyhow, as null is a valid parameter for JSON.

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