Skip to content

Commit

Permalink
fix(toc): quickly switching to API tab can throw exceptions (#913)
Browse files Browse the repository at this point in the history
Fixes #909
  • Loading branch information
Splaktar authored and josephperrott committed Dec 18, 2024
1 parent 45e4c4f commit e1ba21b
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit e1ba21b

Please sign in to comment.