diff --git a/quartz/components/pages/FolderContent.tsx b/quartz/components/pages/FolderContent.tsx index 1acb98a8a..67cfa8dd4 100644 --- a/quartz/components/pages/FolderContent.tsx +++ b/quartz/components/pages/FolderContent.tsx @@ -20,7 +20,6 @@ const defaultOptions: FolderContentOptions = { } export default ((opts?: Partial) => { - // Merge options with defaults const options: FolderContentOptions = { ...defaultOptions, ...opts } function FolderContent(props: QuartzComponentProps) { @@ -50,7 +49,9 @@ export default ((opts?: Partial) => {

{content}

- {options.showFolderCount &&

{pluralize(allPagesInFolder.length, "item")} under this folder.

} + {options.showFolderCount && ( +

{pluralize(allPagesInFolder.length, "item")} under this folder.

+ )}