fix(pagetypes): prevent duplicate content
This commit is contained in:
@@ -134,7 +134,6 @@ function populateVirtualPageHtmlAst(
|
|||||||
try {
|
try {
|
||||||
const htmlString = render(BodyComponent(componentData))
|
const htmlString = render(BodyComponent(componentData))
|
||||||
const htmlAst = fromHtml(htmlString, { fragment: true }) as HtmlRoot
|
const htmlAst = fromHtml(htmlString, { fragment: true }) as HtmlRoot
|
||||||
ve.tree.children = htmlAst.children
|
|
||||||
ve.vfile.data.htmlAst = htmlAst
|
ve.vfile.data.htmlAst = htmlAst
|
||||||
} catch {
|
} catch {
|
||||||
// Body rendering failed — leave htmlAst empty so transclusion falls
|
// Body rendering failed — leave htmlAst empty so transclusion falls
|
||||||
|
|||||||
Reference in New Issue
Block a user