mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
fix: explicit undefined check in header transclude
This commit is contained in:
parent
6a05fa777c
commit
516d9a27e7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue