Open skoch opened 2 weeks ago
Seems the type
was incorrectly generated as 'file' instead of 'image':
// no good
defineField({name: 'leadImage', type: 'file', title: 'Lead Image', hidden: false}),
// yes!
defineField({name: 'leadImage', type: 'image', title: 'Lead Image', hidden: false}),
Describe the bug
After a successful migration, I added the
sanity-plugin-media
to view the media that had been migrated. When viewing from the Media tab I can see assets and I can click an asset to view the details. In the "References" tab in the modal, I can see the entry that references the selected asset. When I click into the referenced entry, I am brought to that entry however when looking at the field that contains the asset I see:If I follow the prompt to reset, I see:
Which finally choosing "Select" -> "Media" (to access the Media library) I do not see any assets.
To Reproduce
Steps to reproduce the behavior:
sanity-plugin-media
to your list of plugins insanity.config.ts
(or js)Expected behavior
When migrating, any referenced images should be properly linked to the entry that contains the image.
Screenshots See above
Which versions of Sanity are you using?
What operating system are you using?
Which versions of Node.js / npm are you running?