« get me outta code hell

fix group page sidebar highlighting all groups - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-06-10 16:41:37 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-06-10 16:42:04 -0300
commit18455459a991c3da8b32e2c47c4795dc90c6b422 (patch)
tree64639fc7313f880e1386c5ebcfcc83dd01638afe /src/page
parent04682cbea790fde874a8488777738d28758012a9 (diff)
fix group page sidebar highlighting all groups
Diffstat (limited to 'src/page')
-rw-r--r--src/page/group.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/page/group.js b/src/page/group.js
index 698c17ec..7282fc81 100644
--- a/src/page/group.js
+++ b/src/page/group.js
@@ -201,7 +201,7 @@ function generateGroupSidebar(currentGroup, isGallery, {
                     html.tag('ul',
                         category.groups.map(group => html.tag('li',
                             {
-                                class: currentGroup && 'current',
+                                class: group === currentGroup && 'current',
                                 style: getLinkThemeString(group.color)
                             },
                             strings('groupSidebar.groupList.item', {