How are you running Flagsmith
Describe the bug
When deleting a project, the FE shows 'Oops!' permission error as it tries to retrieve the same project that it just deleted.
Steps To Reproduce
- In a project that is safe to delete, navigate to project settings
- Click on 'Delete Project' and confirm in the following dialog
- Notice that you see an 'Oops!' error message
Expected behavior
The FE should redirect to the first project in the list, or project create screen if it was the last project in the organisation.
Screenshots

How are you running Flagsmith
Describe the bug
When deleting a project, the FE shows 'Oops!' permission error as it tries to retrieve the same project that it just deleted.
Steps To Reproduce
Expected behavior
The FE should redirect to the first project in the list, or project create screen if it was the last project in the organisation.
Screenshots