Skip to content

Commit

Permalink
fix(toc): quickly switching to API tab can throw exceptions (angular#913
Browse files Browse the repository at this point in the history
)

Fixes angular#909
  • Loading branch information
Splaktar authored Feb 8, 2021
1 parent 0dd951e commit 974601e
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 974601e

Please sign in to comment.