Skip to content

Commit 8d5c3b9

Browse files
authored
Update table of content forwards check (#445)
1 parent e7f6ec0 commit 8d5c3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frank-doc-frontend/src/app/views/details/details.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class DetailsComponent implements OnInit, OnDestroy {
138138
}
139139
if (element.parameters) tableOfContents.push({ name: 'Parameters', anchor: '#parameters', active: false });
140140
if (element.children) tableOfContents.push({ name: 'Nested Elements', anchor: '#nested-elements', active: false });
141-
if (element.forwards || this.hasInheritedProperties.forwards)
141+
if ((element.forwards && Object.keys(element.forwards).length > 0) || this.hasInheritedProperties.forwards)
142142
tableOfContents.push({ name: 'Forwards', anchor: '#forwards', active: false });
143143

144144
this.tableOfContents = tableOfContents;

0 commit comments

Comments
 (0)