# DiscoTOC showing me TypeError

**URL:** <https://meta.discourse.org/t/discotoc-showing-me-typeerror/342100>\
**Category:** Bug\
**Tags:** disco-toc\
**Created:** [December 12, 2024, 4:11pm UTC](https://meta.discourse.org/t/discotoc-showing-me-typeerror/342100 "2024-12-12T16:11:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Yt.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yt.w/32/348367_2.png) [@Yt.w](https://meta.discourse.org/u/Yt.w)\
**Post date:** [December 12, 2024, 4:11pm UTC](https://meta.discourse.org/t/discotoc-showing-me-typeerror/342100/1 "2024-12-12T16:11:06Z")

</div>

It’s showing me below error. hot to fix it?

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/4/d/74d4686eb77c2dbf106b7e27b53a3760830b6124.png)

btw, after I add TOC in a topic, I need to refresh the page, otherwise the TOC link is not working. is this a normal behavior?

---

_[View the full topic](https://meta.discourse.org/t/discotoc-showing-me-typeerror/342100)._
