Skip to content

Commit

Permalink
Tweak filtering of fields (remove searchable requirement)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Jun 29, 2020
1 parent 1b4b99f commit a6dfeb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const Editor: React.FC<Props> = (props) => {
const supportedFields = useMemo(() => {
if (sourceStatus?.logIndexFields) {
return sourceStatus.logIndexFields.filter((field) => {
return (field.type === 'string' || field.type === 'number') && field.searchable;
return field.type === 'string' || field.type === 'number';
});
} else {
return [];
Expand All @@ -143,7 +143,7 @@ export const Editor: React.FC<Props> = (props) => {
const groupByFields = useMemo(() => {
if (sourceStatus?.logIndexFields) {
return sourceStatus.logIndexFields.filter((field) => {
return field.type === 'string' && field.aggregatable && field.searchable;
return field.type === 'string' && field.aggregatable;
});
} else {
return [];
Expand Down

0 comments on commit a6dfeb6

Please sign in to comment.