Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error on editing asset details. #230

Open
shahanshaada opened this issue Oct 7, 2024 · 1 comment
Open

Runtime error on editing asset details. #230

shahanshaada opened this issue Oct 7, 2024 · 1 comment

Comments

@shahanshaada
Copy link

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:

  • "sanity-plugin-media": "^2.3.2"
  • "sanity": "^3.47.1",
@andelkocvjetkovic
Copy link

Having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants