-
Notifications
You must be signed in to change notification settings - Fork 87
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
Deleted image breaks whole page editor #769
Comments
Did you delete the image file or the image model? |
Sorry overlooked. As mentioned:
The image model instance was deleted through the wagtail ui. |
I can confirm, same behaviour here. |
Sorry all, I somehow missed this one. |
Possibly some sort of DB constraint should be enforced to prevent this somehow? Don't have time either but might be helpful. |
it is complicated. In that you should be able to remove stuff without everything exploding. I think in this case it is to do with localize trying to access properties that are not available for the widget, and it doesn't do that gracefully |
The issues is with wagtail-localize/wagtail_localize/static_src/common/components/ImageChooser/index.tsx Line 31 in caf14b8
|
Description
ImageBlock
- an image is chosen.The JS is breaking at this point:
Which is probably this:
wagtail-localize/wagtail_localize/static_src/common/components/ImageChooser/index.tsx
Line 46 in bb04c76
I'd be happy to provide a solution - maybe just render - "deleted image {id}" in the widget instead of the image thumbnail?
The text was updated successfully, but these errors were encountered: