on master help sign in
docs: access slug correctly
b9f4440Matilde Park
pages/docs/[[...slug]].js+1−1
@@ -173,7 +173,7 @@ export default function DocsLayout({
173 )}
173 )}
174 </div>
174 </div>
175 </ContentArea>
175 </ContentArea>
176− <TableOfContents key={params?.slug.join("/") || "docs"} />
176+ <TableOfContents key={params.slug?.join("/") || "docs"} />
177 </div>
177 </div>
178 </>
178 </>
179 );
179 );