fix: destructuring

pull/4870/head
Bojan Rajh 1 year ago committed by GitHub
parent c6af3d5ea3
commit c1e64d6a20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -195,8 +195,7 @@ export async function createMarkdownToVueRenderFn(
})
}
const { ignoreDeadLinks = true } = siteConfig
if (links && ignoreDeadLinks !== true) {
if (links && siteConfig?.ignoreDeadLinks !== true) {
const dir = path.dirname(file)
for (let url of links) {
const { pathname } = new URL(url, 'http://a.com')

Loading…
Cancel
Save