Skip to content

Commit ce750bf

Browse files
Revert "Refactor accessors.tsx"
This reverts commit f2b088e.
1 parent f2b088e commit ce750bf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/plugins/vis_type_xy/public/utils/accessors.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ const getFieldName = (fieldName: string, index?: number) => {
2727
};
2828

2929
export const isRangeAggType = (type: string | null) =>
30-
[BUCKET_TYPES.DATE_RANGE, BUCKET_TYPES.RANGE, BUCKET_TYPES.IP_RANGE].includes(
31-
type as BUCKET_TYPES
32-
);
30+
type === BUCKET_TYPES.DATE_RANGE || type === BUCKET_TYPES.RANGE || type === BUCKET_TYPES.IP_RANGE;
3331

3432
/**
3533
* Returns accessor function for complex accessor types

0 commit comments

Comments
 (0)