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.
2 parents b92400b + 65a2e71 commit 2d4e3faCopy full SHA for 2d4e3fa
1 file changed
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