fix: explicit undefined check in header transclude

This commit is contained in:
Jacky Zhao 2023-11-18 18:27:44 -08:00
parent 6a05fa777c
commit 516d9a27e7

View file

@ -104,7 +104,7 @@ export function renderPage(
break
}
if (startIdx) {
if (startIdx !== undefined) {
endIdx = i
} else if (el.properties?.id === blockRef) {
startIdx = i
@ -112,7 +112,7 @@ export function renderPage(
}
}
if (!startIdx) {
if (startIdx === undefined) {
return
}