autodoc: Fix rendering of imported modules

This commit is contained in:
Krzysztof Wolicki 2023-05-16 13:11:33 +02:00
parent e584dd8062
commit 3e5824d2a6

View File

@ -557,7 +557,7 @@ const NAV_MODES = {
let rootMod = zigAnalysis.modules[zigAnalysis.rootMod];
let mod = rootMod;
curNav.modObjs = [mod];
for (let i = 1; i < curNav.modNames.length; i += 1) {
for (let i = 0; i < curNav.modNames.length; i += 1) {
let childMod = zigAnalysis.modules[mod.table[curNav.modNames[i]]];
if (childMod == null) {
return render404();