We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab8334 commit 828e30aCopy full SHA for 828e30a
src/components/Layout/Toc.tsx
@@ -27,8 +27,7 @@ export function Toc({headings}: {headings: Toc}) {
27
<ul className="space-y-2 pb-16">
28
{headings.length > 0 &&
29
headings.map((h, i) => {
30
- if (h.url == null) {
31
- // TODO: only log in DEV
+ if (!h.url && process.env.NODE_ENV === 'development') {
32
console.error('Heading does not have URL');
33
}
34
return (
0 commit comments