Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Sep 20, 2022
1 parent fa4c064 commit 1d5caa6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/aiops/public/application/utils/query_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ export function buildBaseFilterCriteria(
} else if (selectedGroup && !includeSelectedChangePoint) {
filterCriteria.push({
bool: {
must_not: [
...groupFilter,
],
must_not: [...groupFilter],
},
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PAGINATION_SIZE_OPTIONS = [5, 10, 20, 50];
const DEFAULT_SORT_FIELD = 'pValue';
const DEFAULT_SORT_DIRECTION = 'asc';

export interface GroupTableItem {
export interface GroupTableItem {
id: number;
docCount: number;
pValue: number | null;
Expand Down
7 changes: 6 additions & 1 deletion x-pack/plugins/aiops/public/hooks/use_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export const useData = (

const overallStatsRequest = useMemo(() => {
return fieldStatsRequest
? { ...fieldStatsRequest, selectedChangePoint, selectedGroup, includeSelectedChangePoint: false }
? {
...fieldStatsRequest,
selectedChangePoint,
selectedGroup,
includeSelectedChangePoint: false,
}
: undefined;
}, [fieldStatsRequest, selectedChangePoint, selectedGroup]);

Expand Down

0 comments on commit 1d5caa6

Please sign in to comment.