mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
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) {
|
function handlePopoverStatus(isOpen: boolean) {
|
||||||
// every time the popover opens, make sure the most relevant panel is active
|
// every time the popover opens, make sure the most relevant panel is active
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
if (
|
setActivePanels(getDefaultActivePanel());
|
||||||
!activePanels.find(panel => getDefaultActivePanel().includes(panel))
|
|
||||||
) {
|
|
||||||
setActivePanels([...activePanels, ...getDefaultActivePanel()]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user