Skip to content

Commit

Permalink
Hide tag pages when no description has been set.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Jun 11, 2024
1 parent c74e547 commit 687cf2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/templates/navbar-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ function onExpandCollapseTag(event, tagId) {
if (tag.expanded && this.operationsCollapsed) {
this.resolvedSpec.tags.filter(t => t.elementId !== tagId).forEach(t => t.expanded = false);
}
this.scrollToEventTarget(event, false);

// Only display the dedicated tag page if the tag has a description, otherwise, it will be an ugly page with nothing on it.
if (tag.description) {
this.scrollToEventTarget(event, false);
}
this.requestUpdate();
}

Expand Down

0 comments on commit 687cf2c

Please sign in to comment.