fix: explicit undefined check in header transclude
This commit is contained in:
1 parent
6a05fa777c
commit
516d9a27e7
1 file changed
+2
-2
@@ -104,7 +104,7 @@ export function renderPage(
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if (startIdx) {
|
if (startIdx !== undefined) {
|
||||||
endIdx = i
|
endIdx = i
|
||||||
} else if (el.properties?.id === blockRef) {
|
} else if (el.properties?.id === blockRef) {
|
||||||
startIdx = i
|
startIdx = i
|
||||||
@@ -112,7 +112,7 @@ export function renderPage(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!startIdx) {
|
if (startIdx === undefined) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user