Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Oct 28, 2021
1 parent 30b8278 commit f215abc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function DocPage(props: Props): JSX.Element {
matchPath(location.pathname, docRoute),
);
if (!currentDocRoute) {
return <NotFound {...props} />;
return <NotFound />;
}
return (
<>
Expand Down

0 comments on commit f215abc

Please sign in to comment.