Skip to content

Commit 5705a93

Browse files
author
oatkiller
committed
removed unused type
1 parent 3dd03f1 commit 5705a93

File tree

2 files changed

+11
-24
lines changed
  • x-pack/plugins/security_solution/public/common/components/matrix_histogram

2 files changed

+11
-24
lines changed

x-pack/plugins/security_solution/public/common/components/matrix_histogram/index.tsx

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@ import { MatrixLoader } from './matrix_loader';
1919
import { Panel } from '../panel';
2020
import { getBarchartConfigs, getCustomChartData } from './utils';
2121
import { useQuery } from '../../containers/matrix_histogram';
22-
import {
23-
MatrixHistogramProps,
24-
MatrixHistogramOption,
25-
HistogramAggregation,
26-
MatrixHistogramQueryProps,
27-
} from './types';
22+
import { MatrixHistogramProps, MatrixHistogramOption, MatrixHistogramQueryProps } from './types';
2823
import { InspectButtonContainer } from '../inspect';
2924

3025
import { State, inputsSelectors } from '../../store';
@@ -150,18 +145,16 @@ export const MatrixHistogramComponent: React.FC<
150145
[]
151146
);
152147

153-
const { data, loading, inspect, totalCount, refetch = noop } = useQuery<{}, HistogramAggregation>(
154-
{
155-
endDate,
156-
errorMessage,
157-
filterQuery,
158-
histogramType,
159-
indexToAdd,
160-
startDate,
161-
isInspected,
162-
stackByField: selectedStackByOption.value,
163-
}
164-
);
148+
const { data, loading, inspect, totalCount, refetch = noop } = useQuery({
149+
endDate,
150+
errorMessage,
151+
filterQuery,
152+
histogramType,
153+
indexToAdd,
154+
startDate,
155+
isInspected,
156+
stackByField: selectedStackByOption.value,
157+
});
165158

166159
const titleWithStackByField = useMemo(
167160
() => (title != null && typeof title === 'function' ? title(selectedStackByOption) : title),

x-pack/plugins/security_solution/public/common/components/matrix_histogram/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ export interface GroupBucket {
9999
};
100100
}
101101

102-
export interface HistogramAggregation {
103-
histogramAgg: {
104-
buckets: GroupBucket[];
105-
};
106-
}
107-
108102
export interface BarchartConfigs {
109103
series: {
110104
xScaleType: ScaleType;

0 commit comments

Comments
 (0)