Jacky Zhao
2023-11-19 516d9a27e7e2c08efdf24857b03f1831dbaf7da7
fix: explicit undefined check in header transclude
1 files modified
4 ■■■■ changed files
quartz/components/renderPage.tsx 4 ●●●● patch | view | raw | blame | history
quartz/components/renderPage.tsx
@@ -104,7 +104,7 @@
                break
              }
              if (startIdx) {
              if (startIdx !== undefined) {
                endIdx = i
              } else if (el.properties?.id === blockRef) {
                startIdx = i
@@ -112,7 +112,7 @@
            }
          }
          if (!startIdx) {
          if (startIdx === undefined) {
            return
          }