Skip to content

Commit d5ca920

Browse files
committed
review
1 parent 3a3f7e3 commit d5ca920

File tree

1 file changed

+4
-5
lines changed
  • x-pack/plugins/security_solution/public/common/containers/matrix_histogram

1 file changed

+4
-5
lines changed

x-pack/plugins/security_solution/public/common/containers/matrix_histogram/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ export const useMatrixHistogram = ({
6363
const refetch = useRef<inputsModel.Refetch>(noop);
6464
const abortCtrl = useRef(new AbortController());
6565
const [loading, setLoading] = useState(false);
66-
const [
67-
matrixHistogramRequest,
68-
setMatrixHistogramRequest,
69-
] = useState<MatrixHistogramRequestOptions>({
66+
const [matrixHistogramRequest, setMatrixHistogramRequest] = useState<
67+
MatrixHistogramRequestOptions
68+
>({
7069
defaultIndex: indexNames,
7170
factoryQueryType: MatrixHistogramQuery,
7271
filterQuery: createFilter(filterQuery),
@@ -171,7 +170,7 @@ export const useMatrixHistogram = ({
171170
},
172171
stackByField,
173172
threshold,
174-
...(prevRequest.isPtrIncluded != null ? { isPtrIncluded } : {}),
173+
...(isPtrIncluded != null ? { isPtrIncluded } : {}),
175174
...(!isEmpty(docValueFields) ? { docValueFields } : {}),
176175
};
177176
if (!deepEqual(prevRequest, myRequest)) {

0 commit comments

Comments
 (0)