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

Commit c2a4deb

Browse files
authored
fix(toc): quickly switching to API tab can throw exceptions (#913)
Fixes #909
1 parent e978ae3 commit c2a4deb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/shared/table-of-contents/table-of-contents.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div *ngFor="let linkSection of _linkSections" class="docs-toc-container">
2-
<div class="docs-toc-heading">{{linkSection.name}}</div>
3-
<nav [attr.aria-label]="linkSection.name + ' Table of Contents'">
2+
<div class="docs-toc-heading">{{linkSection?.name}}</div>
3+
<nav [attr.aria-label]="linkSection?.name + ' Table of Contents'">
44
<a [href]="_rootUrl + '#' + link.id"
5-
*ngFor="let link of linkSection.links; let i = index"
5+
*ngFor="let link of linkSection?.links; let i = index"
66
class="docs-level-{{link.type}} docs-link"
77
[class.docs-active]="link.active">
88
{{link.name}}

0 commit comments

Comments
 (0)