mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 20:03:52 +00:00
fix: section can only be selected if parent is
This commit is contained in:
committed by
Carlos Valente
parent
6199d0ad10
commit
1c85265623
@@ -70,7 +70,7 @@ function PanelListItem(props: PanelListItemProps) {
|
||||
</li>
|
||||
{panel.secondary?.map((secondary) => {
|
||||
const id = secondary.id.split('__')[1];
|
||||
const secondaryClasses = cx([style.secondary, location === id ? style.active : null]);
|
||||
const secondaryClasses = cx([style.secondary, isSelected && location === id ? style.active : null]);
|
||||
return (
|
||||
<li
|
||||
key={secondary.id}
|
||||
|
||||
Reference in New Issue
Block a user