Fix meta picker breaking with broken links

pull/989/head
Zef Hemel 2024-07-27 10:55:45 +02:00
parent 528351438d
commit ec88543a14
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ export function PageNavigator({
}); });
} else if (mode === "meta") { } else if (mode === "meta") {
// Special behavior for #template and #meta pages // Special behavior for #template and #meta pages
if (pageMeta._isBrokenLink) {
// Skip over broken links
continue;
}
options.push({ options.push({
...pageMeta, ...pageMeta,
// Use the displayName or last bit of the path as the name // Use the displayName or last bit of the path as the name