neos-ui
neos-ui copied to clipboard
BUG: backend crashes if user is in a non existing edit mode
Description
After removing a custom edit mode. Users who have still selected that mode can no longer login to the backend.
Steps to Reproduce
- add a custom edit mode
- change the edit mode to that custom edit mode with a user
- remove that custom edit mode
- relog with that user
Expected behavior
seeing the backend of the neos installation
Actual behavior
Basically the backend crashes right after logging in. blank space
- TypeError: Cannot read properties of undefined (reading 'backgroundColor')
- TypeError: Cannot read properties of undefined (reading 'isEditingMode')
- uncaught at application TypeError: Cannot read properties of undefined (reading 'backgroundColor')
Affected Versions
Neos: 8.0.3 UI: 8.0.1
A fallback to the inline edit mode in case the selected mode is not defined should be sufficient to solve this issue.