dman926 / SEPHIRA-CMS

An Angular 13 front end with a complete FastAPI backend. Perfect for getting your next project off the ground
MIT License
9 stars 6 forks source link

Deleting images doesn't remove it from products #16

Closed dman926 closed 2 years ago

dman926 commented 2 years ago

Describe the bug When an image is deleted using the media browser, products are not updated to reflect the change. They retain the dead url, which can only be removed by manually updating the DB through mongo.

To Reproduce Steps to reproduce the behavior:

  1. Upload an image using the media browser
  2. Select the image for a product
  3. Delete the image using the media browser
  4. See the store page to see a missing image that can't be removed

Expected behavior When an image is deleted, all products with the image should be updated to reflect the image is gone, or the media browser should be able to notify admins when the product image has been deleted

dman926 commented 2 years ago

This is fixed in the angular-refresh branch