We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97949c commit 65a2e71Copy full SHA for 65a2e71
packages/fs/src/hyperbook.ts
@@ -85,6 +85,9 @@ export const getNavigationForFile = async (
85
i = filteredPageList.findIndex((p) => p.href === currentFile.path.href);
86
87
const resolveLink = (link: string): HyperbookPage | null => {
88
+ if (!link) {
89
+ return null;
90
+ }
91
if (link.startsWith("/@/")) {
92
return (
93
allPages.find((p) => p.permaid === link.split("/@/")[1].trim()) ||
0 commit comments