Skip to content

Commit

Permalink
Fix broken scope
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ajay committed Oct 15, 2021
1 parent 5f83b7c commit 06bf6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,7 @@ const FilterControls: FC<FilterControlsProps> = ({
))}
{filtersInScope.map(filter => {
const index = filterValues.findIndex(f => f.id === filter.id);
return (
<OutPortal
key={`filters-inscope-${index}`}
node={portalNodes[index]}
inView
/>
);
return <OutPortal node={portalNodes[index]} inView />;
})}
{showCollapsePanel && (
<Collapse
Expand Down Expand Up @@ -147,13 +141,7 @@ const FilterControls: FC<FilterControlsProps> = ({
>
{filtersOutOfScope.map(filter => {
const index = cascadeFilters.findIndex(f => f.id === filter.id);
return (
<OutPortal
key={`filters-outofscope-${index}`}
node={portalNodes[index]}
inView
/>
);
return <OutPortal node={portalNodes[index]} inView />;
})}
</Collapse.Panel>
</Collapse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ function useIsFilterInScope() {
// Chart is visible if it's placed in an active tab tree or if it's not attached to any tab.
// Chart is in an active tab tree if all of it's ancestors of type TAB are active
return (filter: CascadeFilter) =>
filter.chartsInScope === undefined ||
filter.chartsInScope?.some((chartId: number) => {
const tabParents = selectChartTabParents(chartId);
return (
Expand Down

0 comments on commit 06bf6eb

Please sign in to comment.