From f215abcbe1e800e13942128289bbcb9dacb9019e Mon Sep 17 00:00:00 2001 From: Josh-Cena Date: Thu, 28 Oct 2021 11:58:18 +0800 Subject: [PATCH] Fix --- .../docusaurus-plugin-client-redirects/src/collectRedirects.ts | 2 +- packages/docusaurus-theme-classic/src/theme/DocPage/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts b/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts index 526d93df7543..ab78bff3109a 100644 --- a/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts +++ b/packages/docusaurus-plugin-client-redirects/src/collectRedirects.ts @@ -68,7 +68,7 @@ function validateCollectedRedirects( return (e as Error).message; } }) - .filter(Boolean) as string[]; + .filter(Boolean); if (redirectValidationErrors.length > 0) { throw new Error( `Some created redirects are invalid: diff --git a/packages/docusaurus-theme-classic/src/theme/DocPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocPage/index.tsx index ebb2ff1abb51..df3a2a29d206 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocPage/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocPage/index.tsx @@ -148,7 +148,7 @@ function DocPage(props: Props): JSX.Element { matchPath(location.pathname, docRoute), ); if (!currentDocRoute) { - return ; + return ; } return ( <>