reaper47 / recipya

A clean, simple and powerful recipe manager your whole family will enjoy.
https://recipes.musicavis.ca
GNU General Public License v3.0
147 stars 10 forks source link

Unable to delete a single cookbook #334

Closed ZeyadAmr closed 4 weeks ago

ZeyadAmr commented 1 month ago

Describe the bug Deleting a cookbook removes the cookbook from the UI, however on refreshing the page it appears again, with all its recipes included. The cookbook is only truly deleted if I press delete on two cookbooks in the same session, then refresh the page. Only the first cookbook 'deleted' will actually be deleted, the other one appears again upon refresh.

To Reproduce Steps to reproduce the behavior:

  1. Go to cookbooks page.
  2. Click on the menu button then 'Delete', the cookbook will have disappeared from the interface.
  3. Refresh the page, the cookbook appears again.

To delete a cookbook:

  1. Go to cookbooks page.
  2. First, click delete on the cookbook you want to delete.
  3. Second, click delete on any other cookbook that you don't want to delete. Both cookbooks will disappear from the interface.
  4. Refresh the page
  5. The first cookbook you 'deleted' will have been removed, the second one returns upon refresh.

Expected behavior The cookbook should be deleted after pressing 'Delete' and confirming the dialog box.

Additional context Deleting cookbooks appears to work fine on the demo instance from what I've seen, but not mine for some reason.

ZeyadAmr commented 4 weeks ago

Ok, I just noticed that the cookbook that's deleted is not necessarily the one which is deleted first. I can't exactly work out the pattern.

reaper47 commented 4 weeks ago

Interesting, I will check it out soon.