Skip to content

Deleting a project shows 'Oops!' permission error #3378

@matthewelwell

Description

@matthewelwell

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

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

  1. In a project that is safe to delete, navigate to project settings
  2. Click on 'Delete Project' and confirm in the following dialog
  3. 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

Screenshot 2024-02-05 at 10 28 14

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions