Skip to content

Commit 066c418

Browse files
committed
fix: 404Template
1 parent a42df53 commit 066c418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/404Template.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const useArchiveDoc = (pathname: string, lang: Locale) => {
218218
const isArchivedDoc =
219219
isRedirect ||
220220
// for ja, because not all docs are archived, so don't check archived
221-
(!isJA && docConfig.archived?.includes(version || ""));
221+
(!isJA && docConfig?.archived?.includes(version || ""));
222222
const redirectUrl = `https://docs-archive.pingcap.com${pathname}`;
223223

224224
return { isArchivedDoc, redirectUrl };

0 commit comments

Comments
 (0)