Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
narcis-radu committed Feb 20, 2025
1 parent cc1ce76 commit 75c9a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/section-metadata/section-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function handleDelay(time, section) {
}

function handleAnchor(anchor, section) {
if (!(anchor || section)) return;
if (!anchor || !section) return;
section.id = anchor;
section.classList.add('section-anchor');
}
Expand Down

0 comments on commit 75c9a61

Please sign in to comment.