Skip to content

Commit 6689ef6

Browse files
committed
fix early exit
1 parent ce8a023 commit 6689ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/markup/anchors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function scrollToAnchor(encodedId, initial) {
2828

2929
export function initMarkupAnchors() {
3030
const markupEls = document.querySelectorAll('.markup');
31-
if (!markupEls) return;
31+
if (!markupEls.length) return;
3232

3333
for (const markupEl of markupEls) {
3434
// create link icons for markup headings, the resulting link href will remove `user-content-`

0 commit comments

Comments
 (0)