Clearing a card games list breaks the step navigation if the teacher was already on the Preview step
Open
@johnnynotsolucky is already working on this.
Since Feb 21, 2022.
Activities: All card games
bug
- Dominant language
- Rust
- Stars
- 14
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
If a the editing progress of a card game is saved at the preview step, but the teacher navigates back to step 1 and clears the word list and then refreshes the page, the editor navigates to them to the preview screen which won't load and the navigation buttons to the previous steps are broken.
To Reproduce
Steps to reproduce the behavior:
- Create a new JIG and add any card game activity;
- Configure the card game and navigate to preview;
- Go back to step one and clear the list;
- Navigate to the Add Activity screen;
- Navigate back to the card game activity;
- Observe that you are taken automatically to the preview step, and the buttons for previous steps don't work.
Expected behavior
Shouldn't auto-navigate to the preview step if the game is in an incomplete state.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.