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

Error on replace image in Post Featured Image block #34506

Closed
Soean opened this issue Sep 2, 2021 · 0 comments · Fixed by #34583
Closed

Error on replace image in Post Featured Image block #34506

Soean opened this issue Sep 2, 2021 · 0 comments · Fixed by #34583
Assignees
Labels
[Block] Post Featured Image Affects the Post Featured Image Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@Soean
Copy link
Member

Soean commented Sep 2, 2021

Description

If I use the featured image block and try to replace the image with another image, the new image will not be rendered and I get a warning in the error console

Step-by-step reproduction instructions

  • Add Post Featured Image block
  • Select image
  • Click on Replace and select another image

No image is rendered and a warning will be in the error console

react-dom.development.js:61 
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
    at MediaReplaceFlow (/gutenberg/build/block-editor/index.min.js?ver=893f09019a5c32d5f4b49f064ac0e4c2:28350:3)
    at FilteredComponentRenderer (/gutenberg/build/components/index.min.js?ver=a610429ef1f11ac7a26bcdd28c16089b:72671:9)
    at /gutenberg/build/data/index.min.js?ver=ba46eec1abdc965327bf5d614463102d:2004:79
    at Fill (/gutenberg/build/components/index.min.js?ver=a610429ef1f11ac7a26bcdd28c16089b:81842:3)
    at Fill
    at BlockControlsOtherFill
    at StyleProvider (/gutenberg/build/components/index.min.js?ver=a610429ef1f11ac7a26bcdd28c16089b:83170:3)
    at BlockControlsFill (/gutenberg/build/block-editor/index.min.js?ver=893f09019a5c32d5f4b49f064ac0e4c2:8407:3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Featured Image Affects the Post Featured Image Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants