Skip to content

Commit

Permalink
Update x-pack/plugins/infra/public/components/alerting/logs/expressio…
Browse files Browse the repository at this point in the history
…n_editor/editor.tsx

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
  • Loading branch information
Kerry350 and weltenwort authored Jun 29, 2020
1 parent a6dfeb6 commit 17b49f8
Showing 1 changed file with 1 addition and 1 deletion.
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';
return (field.type === 'string' || field.type === 'number') && field.searchable;
});
} else {
return [];
Expand Down

0 comments on commit 17b49f8

Please sign in to comment.