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

@Yt.w can you show me your browser console when you have this error please? Expand the error too.


Hello, this is what shows in my console

I have this exact same error on one of the three sites I am hosting in a multi-site set up which leads me to believe one of the settings I have in that site is making this happen. I have not yet determined which setting but when I track it down I will circle back and update the post, I just wanted to add that I am also seeing this in the wild on the latest tests-passed release.

This is what is in my console and it is all things I am used to seeing for better or worse :slight_smile: