sanity-io / sanity-plugin-media

Asset management plugin for Sanity
MIT License
159 stars 51 forks source link

Runtime error on editing asset details. #230

Open shahanshaada opened 1 month ago

shahanshaada commented 1 month ago

Unhandled Runtime error on editing asset details from meatball menu option “Media” for images that are within an array/block.

Error: Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

To Reproduce Steps to reproduce the behavior:

  1. Go to a image that is inside a block/array in sanity.
  2. From the meatball menu, select "Media"
  3. Select the image you just uploaded.
  4. Add/edit any field in Asset details of that image.
  5. Click "Save and Close

Expected behavior Expected behavior is to get the details saved, but instead sanity crashes and shows the above error.

Screenshots image (3) image (4) Below is the error with latest sanity media plugin version: image (2)

Plugin and environment information:

andelkocvjetkovic commented 2 weeks ago

Having the same issue