From 6dd295b1a56240c7401df62df6e90ec96e6c9ed2 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Thu, 12 Jan 2023 20:23:11 +0200 Subject: [PATCH] Insert nav subheadings in the right place. (#4967) * Insert nav subheadings in the right place. Fixes #4924 * Undo erroneous commit --- ietf/static/js/nav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/static/js/nav.js b/ietf/static/js/nav.js index f89e8466b..7d0bf6dff 100644 --- a/ietf/static/js/nav.js +++ b/ietf/static/js/nav.js @@ -38,7 +38,7 @@ export function populate_nav(nav, heading_selector, classes) { while (level < cur_level) { let nav = nav_stack.pop(); cur_level--; - nav_stack[level].appendChild(nav); + nav_stack[cur_level].appendChild(nav); } } else { while (level > cur_level) {