Skip to content

Commit 56d8f0e

Browse files
authored
fix object Object showing on tools pages (#642)
fix object Object showing on tool basics page currently by leaving otu the * entry that does not have a title at its root
1 parent 304dfd1 commit 56d8f0e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/_components/subpage-list.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ type SubpageListProps = {
66
};
77

88
export function SubpageList({ basePath, meta }: SubpageListProps) {
9-
const subpages = Object.entries(meta).filter(([key]) => key !== "index");
9+
const subpages = Object.entries(meta).filter(
10+
([key]) => key !== "index" && key !== "*"
11+
);
1012

1113
return (
1214
<ul className="x:ms-[1.5em] x:not-first:mt-[1.25em] x:list-disc x:[:is(ol,ul)_&]:my-[.75em]">

0 commit comments

Comments
 (0)