« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
Diffstat (limited to 'src/static')
-rw-r--r--src/static/js/client.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/static/js/client.js b/src/static/js/client.js
index 1911c6f7..795b5f77 100644
--- a/src/static/js/client.js
+++ b/src/static/js/client.js
@@ -2708,7 +2708,8 @@ function updateStickySubheadingContent(index) {
     const textContainer =
       templateContent(
         closestHeading.querySelector('.content-heading-sticky-title')) ??
-      closestHeading.querySelector('.content-heading-main-title');
+      closestHeading.querySelector('.content-heading-main-title') ??
+      closestHeading;
 
     for (const child of textContainer.childNodes) {
       if (child.tagName === 'A') {