Skip to content

Commit

Permalink
fix(cross-filters): expand relevant indicator sections
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Mar 19, 2021
1 parent 375ded9 commit 3c1d831
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ const DetailsPanelPopover = ({
function handlePopoverStatus(isOpen: boolean) {
// every time the popover opens, make sure the most relevant panel is active
if (isOpen) {
if (
!activePanels.find(panel => getDefaultActivePanel().includes(panel))
) {
setActivePanels([...activePanels, ...getDefaultActivePanel()]);
}
setActivePanels(getDefaultActivePanel());
}
}

Expand Down

0 comments on commit 3c1d831

Please sign in to comment.