Skip to content

Commit 5672081

Browse files
committed
chore: fix type
1 parent ea1d976 commit 5672081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function NotFound() {
6363
useEffect(() => {
6464
const searchSimilarPages = async () => {
6565
try {
66-
const pathSegments = pathname.split("/").filter(Boolean);
66+
const pathSegments = (pathname ?? "").split("/").filter(Boolean);
6767
const searchTerms = pathSegments.slice(-2).join(" ");
6868

6969
if (!searchTerms) {

0 commit comments

Comments
 (0)