Drop empty entries

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