thorium-nova
thorium-nova copied to clipboard
Deck Editor: Navigation to Deck URL fails occasionally
Describe the bug
After renaming or creating decks in the ship map editor, the editor does a navigation to the deck's URL. This navigation fails quite often, but not always.
This kind of behaviour usually happens, if there is a race condition. Here is seems to be a race between the navigation and a "push" update in the background, after the changes were sent to the server.
To Reproduce Steps to reproduce the behavior:
- Go to the 'Ship's Config' and Choose 'Ship Map'
- Choose a deck
- rename the deck using the "Rename Deck" button
- An error page shows up
- Do a Reload
- The updated deck config shows up correctly
Alternative
- Go to the 'Ship's Config' and Choose 'Ship Map'
- Click the "Create Deck" Button
- An error page shows up
- Do a Reload
- The updated deck config shows up correctly
Expected behavior
The navigation, i.e. the update of the page after renaming o creating a deck should just work without an error.
Screenshots**
Error Page