Skip to content

Commit dda7b09

Browse files
authored
Fix navigation render result (#1533)
The returned value should not be empty here
1 parent da63050 commit dda7b09

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/tooling/docs-assembler/Navigation/GlobalNavigationHtmlWriter.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ public async Task<NavigationRenderResult> RenderNavigation(IRootNavigationItem<I
5757
var navigationId = ShortId.Create($"{(navigationRootSource, maxLevel).GetHashCode()}");
5858

5959
if (_renderedNavigationCache.TryGetValue((navigationRootSource, maxLevel), out var value))
60-
return NavigationRenderResult.Empty;
60+
{
61+
return new NavigationRenderResult
62+
{
63+
Html = value,
64+
Id = navigationId
65+
};
66+
}
6167

6268
if (navigationRootSource == new Uri("docs-content:///"))
6369
{

0 commit comments

Comments
 (0)