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

[BUG] - Duplicate recipe title leads to data loss #3506

Open
6 tasks done
mhellmeier opened this issue Apr 21, 2024 · 1 comment
Open
6 tasks done

[BUG] - Duplicate recipe title leads to data loss #3506

mhellmeier opened this issue Apr 21, 2024 · 1 comment
Labels
bug: confirmed bug Something isn't working

Comments

@mhellmeier
Copy link

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

When editing a recipe with an already-existing name (title), all edited data are lost after clicking the "save" icon. There is an error message, but it only indicates that the name already exists. There is no information that the recently edited data isn't saved. Since the editor exists successfully, the user thinks everything has worked out.

To solve this issue, I would edit the error message with more details or prevent the user from existing the editor if the title isn't available.

Steps to Reproduce

  1. Create a new recipe with the Name "Test1" and save it.
  2. Create another recipe with the Name "Test2" and save it.
  3. Edit the "Test1" recipe, change the description, etc., and change the name to "Test2" and try to save it.
  4. You will see all your edits, the new Title "Test2" and an error message that the name already exists (duplicate)
  5. If you refresh the page or visit another recipe and come back, all data from the edit of step 3 are lost.

Please provide relevant logs

No logs are needed.

Mealie Version

Latest (nightly build)

Deployment

Docker (Linux)

Additional Deployment Details

No response

@mhellmeier mhellmeier added bug Something isn't working triage labels Apr 21, 2024
@boc-the-git
Copy link
Collaborator

This does happen as described.. There's probably a better UX that could be present but it'd be a relatively rare issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: confirmed bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants