mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
5.59k stars 608 forks source link

[BUG] - Categories and Tags share query cache In the recipes manager #3794

Open retnag opened 4 days ago

retnag commented 4 days ago

First Check

What is the issue you are experiencing?

When assigning Tags and Categories to multiple recipes in the data manager, I noticed that the first opened dropdown contents (either categories or Tags) will be shown for both categories and tags.

Steps to Reproduce

1) click on your user icon in the left menubar 2) select "Manage Data" 3) choose "Recipes" 4) select the first recipe checkmark from the list 5) click on "Actions">"Tag" and look at and remember the Tags list shown when you open the drop-down. 6) click "cancel" 7) click on "Actions">"Categorize" and open the drop-down

What happens?

The tags list is shown instead of the categories list. The same thing happens if you reverse the order, and open categories first, then the categories are shown when trying to assign tags

What should happen?

when assigning tags, the up-to-date list of tags should be shown. When assigning categories the up-to-date list of categories should be available to choose from.

Please provide relevant logs

none

Mealie Version

confirmed on both 21f1d46b6de06f954895e8dc79451a0676101aa1 and d96c36333b9cb9461c5dee96ae28b60d912b38fd

Deployment

Docker (Linux)

Additional Deployment Details

deployment via docker