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

issue with nested objects #13

Open
isaacfink opened this issue Apr 3, 2022 · 0 comments
Open

issue with nested objects #13

isaacfink opened this issue Apr 3, 2022 · 0 comments

Comments

@isaacfink
Copy link

hi I am adding an array with multiple nested object to sort but in the event on sort I get back a couple of undefined objects

this is my list i am adding to the sortable list component

{
    "edges": [
        {
            "node": {
                "id": "Y2F0ZWdvcnlfdHlwZTo1Mg==",
                "name": "lunch",
                "pk": 52,
                "__typename": "category_type"
            },
            "__typename": "category_typeEdge"
        },
        {
            "node": {
                "id": "Y2F0ZWdvcnlfdHlwZTo1Mw==",
                "name": "gifts changed",
                "pk": 53,
                "__typename": "category_type"
            },
            "__typename": "category_typeEdge"
        }
    ],
    "__typename": "category_typeConnection"
}

(It's from a graphql api)
and when I sort the list I get this response

[
    {
        "node": {
            "id": "Y2F0ZWdvcnlfdHlwZTo1Mg==",
            "name": "lunch",
            "pk": 52,
            "__typename": "category_type"
        },
        "__typename": "category_typeEdge"
    },
    null
]

this is the event from sort event

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

No branches or pull requests

1 participant