Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

fix(toc): quickly switching to API tab can throw exceptions #913

Merged
merged 1 commit into from
Feb 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/shared/table-of-contents/table-of-contents.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div *ngFor="let linkSection of _linkSections" class="docs-toc-container">
<div class="docs-toc-heading">{{linkSection.name}}</div>
<nav [attr.aria-label]="linkSection.name + ' Table of Contents'">
<div class="docs-toc-heading">{{linkSection?.name}}</div>
<nav [attr.aria-label]="linkSection?.name + ' Table of Contents'">
<a [href]="_rootUrl + '#' + link.id"
*ngFor="let link of linkSection.links; let i = index"
*ngFor="let link of linkSection?.links; let i = index"
class="docs-level-{{link.type}} docs-link"
[class.docs-active]="link.active">
{{link.name}}
Expand Down