Fix console error in wiki TOC
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:
How to set up and validate locally
- Go to a wiki page.
- Click edit button.
- Reload the page.
- The console error does not appear (which previously did).
Edited by Himanshu Kapoor