fafranco82 / swdestinydb

Star Wars Destiny Deckbuilder
52 stars 26 forks source link

Custom tags are being erased after you edit a deck #300

Open JonasBang opened 4 years ago

JonasBang commented 4 years ago

How to reproduce:

  1. Go to: https://swdestinydb.com/decks
  2. Select one deck (by adding a check mark in the box to the left)
  3. Click on "With Selection" dropdown (which is now highlighted in blue)
  4. Select "Add one or more tags" from the dropdown
  5. Enter a custom tag, e.g. "tournament", and click "Add"
  6. Refresh the page: https://swdestinydb.com/decks

Now, below the deck name, it will have the new custom tag, and will say e.g. "hero - tournament". The "tournament" tag will also appear under the "With Selection" dropdown to enable sorting (which works just fine). All good so far.

  1. Now select "Edit" of the deck with the "tournament" tag on it
  2. Make a change to the deck (cards or notes), and select "Save"
  3. The page will return and refresh: https://swdestinydb.com/decks
  4. Now all custom tags have been erased (only the default "hero" or "villain" tag persist)