Skip to content

Fix console error in wiki TOC

Himanshu Kapoor requested to merge himkp-fix-wiki-toc-console-error into master

What does this MR do and why?

Fix console error in wiki TOC

When loading TOC for a wiki page in edit mode, the getHeadingsFromDOM function errors out. This commit fixes it.

This was introduced by !154050 (merged) (issue: #281570 (closed))

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Below console error no longer appears:

image.png

How to set up and validate locally

  1. Go to a wiki page.
  2. Click edit button.
  3. Reload the page.
  4. The console error does not appear (which previously did).
Edited by Himanshu Kapoor

Merge request reports