Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Jun 6, 2020
1 parent a6961aa commit ae75d77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/siem/public/components/timeline/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,20 @@ export const buildGlobalQuery = (dataProviders: DataProvider[], browserFields: B
.reduce((queries: string[], dataProvider: DataProvider) => {
const flatDataProviders = [dataProvider, ...dataProvider.and];
const activeDataProviders = flatDataProviders.filter(
flatDataProvider => flatDataProvider.enabled
(flatDataProvider) => flatDataProvider.enabled
);

if (!activeDataProviders.length) return queries;

const activeDataProvidersQueries = activeDataProviders.map(activeDataProvider =>
const activeDataProvidersQueries = activeDataProviders.map((activeDataProvider) =>
buildQueryMatch(activeDataProvider, browserFields)
);

const activeDataProvidersQueryMatch = activeDataProvidersQueries.join(' and ');

return [...queries, activeDataProvidersQueryMatch];
}, [])
.filter(queriesItem => !isEmpty(queriesItem))
.filter((queriesItem) => !isEmpty(queriesItem))
.reduce((globalQuery: string, queryMatch: string, index: number, queries: string[]) => {
if (queries.length <= 1) return queryMatch;

Expand Down

0 comments on commit ae75d77

Please sign in to comment.