dixhuit / unitcrunch-issue-tracker

Issue tracker for UnitCrunch.
https://www.unitcrunch.com
5 stars 0 forks source link

Save issue with re-imported Data Exports #101

Closed korzxd closed 3 months ago

korzxd commented 3 months ago

Describe the bug

Clicking Save when editing an advanced Profile will not close the advanced editor, you have to click cancel. The updated timestamp in Manage Profiles shows the Profile had been updated but if you re-edit the profile nothing has changed.

To Reproduce

Steps to reproduce the behavior:

  1. Import this profile - Aeldari-v1.2.txt
  2. Go to Manage Profiles
  3. Search for Striking Scorpions x5
  4. Click Edit
  5. Expand the Striking Scorpions x5 Unit.
  6. Click Preset Abilities.
  7. Select a random ability from the list
  8. Click Save
  9. See Save not closing result.
  10. Click Cancel.
  11. See the Timestamp has changed next to Striking Scorpions x5
  12. Click Edit
  13. Expand the Striking Scorpions x5 Unit.
  14. See the Unit abilities section is empty.

Expected behavior

It would save correctly.

Additional context

If i import the current Aeldari-v1.1.txt i can convert those basic profiles to advanced profiles, follow the same steps as above and it works fine.

So it was working when i started creating this export but in that time i've Exported and Imported this Data Export due to working on it across 2 different machines both running the same OS and using the same Browser and maybe the error has occurred somewhere in that process.

dixhuit commented 3 months ago

Thanks for the bug report. Will investigate ASAP.

dixhuit commented 3 months ago

Just tried to recreate and I get a console error at step #7. I wonder if that's the cause or is at least related. Will fix that first and take it from there.