-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nav Screen: No way to create a menu when a user has no menus #32256
Comments
@Mamaduka Anything to do with our recent refactoring in and around this area? |
I re-tested this and I can see the request going out to
That returns the expected empty array However the app still thinks we have a selected menu ID so it then tries to make a request for that selected menu ID which doesn't exist so we get the error Dan was seeing. Working on a fix. |
I was finally able to reproduce the broken screen. I had to delete menus from the non-experimental Menus screen. There are multiple ways to delete menus, so the guard clause is proposed in #32306 makes sense. |
Description
At the moment the navigation screen seems to shown an incorrect state when a user has no menus, and the user has no way to create a first menu.
The culprit seems to be a failed REST request for fetching menus. Possibly this hasn't been caught by end to end tests because those use endpoint mocking. I'm not sure why this is suddenly an issue, perhaps a change in the REST endpoints?
Here's the failed request:
Step-by-step reproduction instructions
Expected behaviour
The UI for creating a first menu is displayed.
And also, if a REST Request is failed, it's handled and an error state is shown.
Actual behaviour
The screen shows some of the UI from when a menu exists.
The text was updated successfully, but these errors were encountered: