Skip to content

Commit e1ba21b

Browse files
Splaktarjosephperrott
authored andcommitted
fix(toc): quickly switching to API tab can throw exceptions (#913)
Fixes #909
1 parent 45e4c4f commit e1ba21b

File tree

1 file changed

+3
-3
lines changed
  • material.angular.io/material.angular.io/material.angular.io/material.angular.io/material.angular.io/src/app/shared/table-of-contents

1 file changed

+3
-3
lines changed

material.angular.io/material.angular.io/material.angular.io/material.angular.io/material.angular.io/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)