mirror of https://github.com/apache/superset.git
fix(cross-filters): expand relevant indicator sections (#13703)
This commit is contained in:
parent
375ded92ef
commit
87d1afcc65
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue