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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue setting initialValue within sections #62

Open
mbrodt opened this issue Jun 5, 2024 · 0 comments
Open

Issue setting initialValue within sections #62

mbrodt opened this issue Jun 5, 2024 · 0 comments

Comments

@mbrodt
Copy link

mbrodt commented Jun 5, 2024

Hi, and thanks for the great packages - they've made it much easier to build a great Sanity Studio experience 馃檶

I've ran into an issue using the defineSection helper, where the initialValue of a field is not respected. It's probably easiest to explain with a video:

Screen.Recording.2024-06-05.at.11.54.44.mov

Here I'm using a "media" schema type I've defined, that sets some default values. They work fine when added directly to the document (using the defineField Sanity helper), but when they're using the same helper within a section, it doesn't set the default values.

Any idea what might be causing this or what I can do to fix it? Appreciate any help 馃檶

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