Drop empty entries

This commit is contained in:
David Bolack committed 2024-09-07 20:35:43 -05:00
1 parent 6ea724bb16
commit b0dffc6df1
1 file changed
+1 -1
@@ -87,7 +87,7 @@ const ToCIterate = (entries, curDepth=0)=>{
}
});
}
return toc;
return toc.length > 0 ? toc : null;
};
module.exports = function(props){