Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kresus kresus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 142
    • Issues 142
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • kresusapp
  • kresuskresus
  • Issues
  • #1045
Closed
Open
Created Dec 06, 2020 by Antoine@ZeHiroDeveloper

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.

Assignee
Assign to
Time tracking