Open ttavni opened 7 months ago
@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 additionalFields
make more sense now 😅 but it is nice to store the alt text for images globally instead of individually through the media plugin
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