Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Mar 26, 2024
1 parent d03aa41 commit a20c18d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions x-pack/plugins/lens/public/visualizations/xy/visualization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -662,16 +662,10 @@ export const getXyVisualization = ({
},

isSubtypeCompatible(subtype1, subtype2) {
if (isHorizontalSeries(subtype1 as SeriesType) && isHorizontalSeries(subtype2 as SeriesType)) {
return true;
}
if (
!isHorizontalSeries(subtype1 as SeriesType) &&
!isHorizontalSeries(subtype2 as SeriesType)
) {
return true;
}
return false;
return (
(isHorizontalSeries(subtype1 as SeriesType) && isHorizontalSeries(subtype2 as SeriesType)) ||
(!isHorizontalSeries(subtype1 as SeriesType) && !isHorizontalSeries(subtype2 as SeriesType))
);
},

getCustomLayerHeader(props) {
Expand Down

0 comments on commit a20c18d

Please sign in to comment.