Skip to content

Commit

Permalink
Revert "Refactor accessors.tsx"
Browse files Browse the repository at this point in the history
This reverts commit f2b088e.
  • Loading branch information
DianaDerevyankina committed Mar 1, 2021
1 parent f2b088e commit ce750bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/vis_type_xy/public/utils/accessors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ const getFieldName = (fieldName: string, index?: number) => {
};

export const isRangeAggType = (type: string | null) =>
[BUCKET_TYPES.DATE_RANGE, BUCKET_TYPES.RANGE, BUCKET_TYPES.IP_RANGE].includes(
type as BUCKET_TYPES
);
type === BUCKET_TYPES.DATE_RANGE || type === BUCKET_TYPES.RANGE || type === BUCKET_TYPES.IP_RANGE;

/**
* Returns accessor function for complex accessor types
Expand Down

0 comments on commit ce750bf

Please sign in to comment.