Water-Systems-Management-UCM / Waterspout

Server side API for ag water optimization model runner
MIT License
2 stars 0 forks source link

Removing cards with the corner "x" is unreliable #65

Closed nickrsan closed 3 years ago

nickrsan commented 3 years ago

I haven't been able to trace it down yet, but behavior can be reproduced by

  1. Add a region
  2. remove the region
  3. add another region
  4. try to remove the region - it'll deactivate, but not get removed.

It seems that active_regions may not be getting updated correctly as a computed property, or something else is failing to call update_selected, or it's getting called with no changes. Still needs work to trace what's going on.

nickrsan commented 3 years ago

Resolved in https://github.com/Water-Systems-Management-UCM/Stormchaser/commit/1458a4f62aa68183859b245b79f2e7002d49fcc0 - made regions and available regions get calculated once in the created() method rather than making them computed properties