Unhandled "unknwon id" in category/edit accesses/edit
We don't handle the case where the category or the access retrived from the id inside the url is unknown.
STR:
- go to /accesses/edit/132 where 132 is the id of an unknown access
- an error is raised (leading to the ErrorReporter being displayed):
TypeError: access is null
REACT INFO:
in ConnectFunction
in Unknown (created by AccessComponent)
in Route (created by AccessComponent)
in Switch (created by AccessComponent)
in AccessComponent
in Unknown (created by BaseApp)
in Route (created by BaseApp)
in Switch (created by BaseApp)
in div (created by BaseApp)
in div (created by BaseApp)
in main (created by BaseApp)
in BaseApp (created by ConnectFunction)
in ConnectFunction
in Unknown (created by ConnectFunction)
in ConnectFunction
in Route
in Switch
in ErrorReporter
in Unknown (created by ConnectFunction)
in ConnectFunction
in Provider
in Router (created by BrowserRouter)
in BrowserRouter
similarly, go to /categories/edit/7
where 7 is the id of an unkwown category.
An alert is raised.
This is quite cosmetic, but in term of UX this it not very nice.