Skip to content

TypeError in the ChildrenTree when an element has a type unknown to the frontend

Sentry Issue: ARKINDEX-FRONTEND-AS8

TypeError: t is undefined
  at 38022/s/< (./js/mixins.js:5:10)
  at render (./vue/Navigation/ChildrenTree/ChildrenTree.vue?f408:1:825)
  at call (./vue/Navigation/ChildrenTree/ChildrenTree.vue?f408:1:639)
...
(6 additional frame(s) were not displayed)
  1. Open a folder that contains a page.
  2. In another tab, head to the folder's project's settings and create a new element type.
  3. Still in that second tab, go to a page of the folder and annotate the page with this new type.
  4. Close the second tab.
  5. Back in the first tab, open the JS console.
  6. Click on the page you annotated on.
  7. Watch the console go red.
  8. Cry.

I am not sure how this issue actually occurred; I just found a way to reproduce it. Handling unknown element types sounds messy, but we can handle the specific TypeError that occurred pretty easily here.