mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 16:49:41 +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>
|
</li>
|
||||||
{panel.secondary?.map((secondary) => {
|
{panel.secondary?.map((secondary) => {
|
||||||
const id = secondary.id.split('__')[1];
|
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 (
|
return (
|
||||||
<li
|
<li
|
||||||
key={secondary.id}
|
key={secondary.id}
|
||||||
|
|||||||
Reference in New Issue
Block a user