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
Cannot access "altText" inside images #243
Comments
@carbonrobot yes that's correctly. I am using the Sanity Media plugin (https://github.com/sanity-io/sanity-plugin-media) so it is automatically adding those fields and it's directly on the asset type - nothing extra in my schema. I didn't realise about adding custom fields on images, that makes the |
I am using the
sanityImage
utility method and cannot access the altText which is an additional field. I'm not sure if there's be a change with sanity since the implementation but for example:It always returns null for the altText because the altText is inside asset. The only way I've got around this is
Which sort of defeats the point and ruins the types
The text was updated successfully, but these errors were encountered: