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

Does not allow being in nested structures #31

Open
JayBox325 opened this issue Feb 4, 2025 · 0 comments
Open

Does not allow being in nested structures #31

JayBox325 opened this issue Feb 4, 2025 · 0 comments

Comments

@JayBox325
Copy link

Describe the bug

I have multiple navigations so I have tried to put them inside a listItem and it's children, but that throws an error:

S.listItem()
    .title("Navigation")
    .id("navigation")
    .icon(PiNavigationArrowFill)
    .child(
        createDeskHierarchy({
            S,
            context,

            title: 'Footer Menu',
            documentId: 'footerMenu',
            icon: PiNavigationArrowFill,
            referenceTo: ['page'],
        }),
        createDeskHierarchy({
            S,
            context,

            title: 'Main Menu',
            documentId: 'mainMenu',
            icon: PiNavigationArrowFill,
            referenceTo: ['page'],
        })
    )

But this throws the following when I click on the item:

Error: Component not defined: Code
Image
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