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:
- Go to a image that is inside a block/array in sanity.
- From the meatball menu, select "Media"
- Select the image you just uploaded.
- Add/edit any field in Asset details of that image.
- Click "Save and Close
Expected behavior
Expected behavior is to get the details saved, but instead sanity crashes and shows the above error.
Screenshots


Below is the error with latest sanity media plugin version:

Plugin and environment information:
- "sanity-plugin-media": "^2.3.2"
- "sanity": "^3.47.1",
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:
Expected behavior
Expected behavior is to get the details saved, but instead sanity crashes and shows the above error.
Screenshots



Below is the error with latest sanity media plugin version:
Plugin and environment information: