🐛 | Drupal core | The media library should perform access checks against the revision of the entity being edited
🇮🇩Indonesia permanaj Bali
I have similar case with @imalabya
I get error `Non-reusable blocks must set an access dependency for access control.` after uploading the image for the second time
Steps to reproduce:
- Add a Block which have a media reference in a Layout Builder enabled node
- Clone the node
- Go to the layout of the new cloned node and edit the block.
- Remove the attached media reference and try to add upload new image. Save block. Save layout.
- Go to the layout of the cloned node again, and edit the block.
- Remove the attached media reference and again, try to add upload new image. After selecting the image there is an error on the browser console
I test this on simplytest.me using Drupal 10.3.6 and 10.3.9 with Entity clone module version 2.1.x.
🇮🇩Indonesia permanaj Bali
Apparently I missed some configuration on .storybook/main.js. After adding staticDirs: ['../../../../../web']
to config, the image displayed correctly
🇮🇩Indonesia permanaj Bali
permanaj → created an issue.