Skip to content

Commit

Permalink
fix: remove icicle and flame from getscreenreaderData check
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed May 14, 2021
1 parent 547c7af commit 2acc45e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import createCachedSelector from 're-reselect';
import { getChartIdSelector } from '../../../../state/selectors/get_chart_id';
import { getSettingsSpecSelector } from '../../../../state/selectors/get_settings_specs';
import { flatSlicesNames, HierarchyOfArrays } from '../../layout/utils/group_by_rollup';
import { isFlame, isIcicle } from '../../layout/viewmodel/viewmodel';
import { Layer, PartitionSpec } from '../../specs';
import { partitionMultiGeometries } from './geometries';
import { getPartitionSpecs } from './get_partition_specs';
Expand Down Expand Up @@ -55,6 +56,6 @@ const getScreenReaderDataForPartitions = (
export const getScreenReaderDataSelector = createCachedSelector(
[getPartitionSpecs, getSettingsSpecSelector, getTrees, partitionMultiGeometries],
(specs, { legendMaxDepth }, trees) => {
return getScreenReaderDataForPartitions(specs, legendMaxDepth, trees);
return !isIcicle || !isFlame ? getScreenReaderDataForPartitions(specs, legendMaxDepth, trees) : [];
},
)(getChartIdSelector);

0 comments on commit 2acc45e

Please sign in to comment.