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)
- Open a folder that contains a page.
- In another tab, head to the folder's project's settings and create a new element type.
- Still in that second tab, go to a page of the folder and annotate the page with this new type.
- Close the second tab.
- Back in the first tab, open the JS console.
- Click on the page you annotated on.
- Watch the console go red.
- 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.