0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 06:32:37 +00:00

Drop empty entries

This commit is contained in:
David Bolack
2024-09-07 20:35:43 -05:00
parent 6ea724bb16
commit b0dffc6df1

View File

@@ -87,7 +87,7 @@ const ToCIterate = (entries, curDepth=0)=>{
}
});
}
return toc;
return toc.length > 0 ? toc : null;
};
module.exports = function(props){