fix(cross-filters): expand relevant indicator sections (#13703)

This commit is contained in:
Ville Brofeldt 2021-03-19 11:52:03 +02:00 committed by GitHub
parent 375ded92ef
commit 87d1afcc65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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());
}
}