H2s are displaying twice in Table of contents (TOC)

Created on 31 July 2024, 4 months ago
Updated 4 September 2024, 3 months ago

Problem/Motivation

H2s are displaying twice in Table of contents (TOC). This is occurring on Page content type and Event content type.

Steps to reproduce

Page content type

  1. Install the theme on a fresh site
  2. Create a Page content type
  3. Add a Content component
  4. Add content that includes at least 1 Heading 2
  5. Fill checkbox to 'Show Table of Contents'
  6. Show or hide sidebar - issue is present regardless

Take the same steps for event, though there is no need to add a Content component. Just insert H2s into the Body field.

Observed outcome

The heading 2s display twice in the TOC.

Expected outcome

Each h2 should only display once in the TOC.

Proposed resolution

🐛 Bug report
Status

Needs review

Version

1.8

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024