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

Multiple referenceTo types breaks things #10

Open
ghost opened this issue Oct 13, 2022 · 2 comments
Open

Multiple referenceTo types breaks things #10

ghost opened this issue Oct 13, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2022

If I add more than one type to the prop referenceTo, I can only edit the first type when clicking on a DocumentInNode-item. Clicking an item of a different type results in the following error: This document is of type x and cannot be edited as x.

@ehuelsda
Copy link

@hdoro Is the code in createDeskHierary.tsx on from line 36 needed anymore? I tried to use referenceTo directly, instead of safelyCreatableTypes, and it doesn't seem to break anything in my studio.

@liamb13
Copy link

liamb13 commented Nov 18, 2022

Hoping it's that simple of a fix @ehuelsda and a PR is created soon. Could you share further on what you tried?

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

2 participants