diff --git a/themes/V3/5ePHB/snippets/tableOfContents.gen.js b/themes/V3/5ePHB/snippets/tableOfContents.gen.js index c9faff553..614bb1cfb 100644 --- a/themes/V3/5ePHB/snippets/tableOfContents.gen.js +++ b/themes/V3/5ePHB/snippets/tableOfContents.gen.js @@ -87,7 +87,7 @@ const ToCIterate = (entries, curDepth=0)=>{ } }); } - return toc; + return toc.length > 0 ? toc : null; }; module.exports = function(props){