Describe the bug
When editing abilities from the adversaries's view, switching to and from other tabs (e.g. operations) makes the view "forget" about the changes (it's loading the same data as before the edit) and may cause an unintended override of the changes.
To Reproduce
Steps to reproduce the behavior:
Go to the adversary tab and select an adversary.
Edit something (tests done with the command section) and save.
Clicking directly on the ability again, you can see the changes without issue.
Click on another tab, and come back to the adversary tab.
The adversary previously opened is still opened. Click on the edited ability: the changes are gone. If you edit anything (or not) and save, the changes made at 2 are overriden.
Expected behavior
The data at 5 should be the same as at 3, i.e. updated with the changes. Otherwise, not being aware of this may cause the user to destroy their previous edits when switching from another tab, changing something else and then saving the ability again (which happens often in testing phases).
Describe the bug When editing abilities from the adversaries's view, switching to and from other tabs (e.g. operations) makes the view "forget" about the changes (it's loading the same data as before the edit) and may cause an unintended override of the changes.
To Reproduce Steps to reproduce the behavior:
Expected behavior The data at 5 should be the same as at 3, i.e. updated with the changes. Otherwise, not being aware of this may cause the user to destroy their previous edits when switching from another tab, changing something else and then saving the ability again (which happens often in testing phases).
Screenshots See the video: https://github.com/mitre/caldera/assets/168103052/e9f29d4e-2e1c-4f4e-8e9c-fca3d73165ed
Desktop (please complete the following information):
Additional context It looks like clicking on the same adversary from the drop-down list makes the ability update, BUT only after another tab switch (see the video), so I am confused as to what is not loading properly: https://github.com/mitre/caldera/assets/168103052/3ab025f9-6498-487d-a5d1-4d01025fc6c3