DiscoTOC showing me TypeError

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

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?

1 Like

Hey @Yt.w, thanks for the report. I couldn’t reproduce the issue you mentioned. Do you still observe this behavior? If so, could you please provide more details on the steps to reproduce it?

From what I can see, refreshing the page to rebuild the HTML is expected behavior. While it might be possible to avoid this, it would require changes to how the component currently works.

1 Like

Hello, I still observe this behavior, and it actually occurred immediately after I installed my current instance. I didn’t make any changes.

My other instance doesn’t have this issue, so it’s quite confusing for me.

From a UX perspective, I believe it’s better to avoid refreshing the page to keep the TOC active.

1 Like