Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Nov 24, 2020
1 parent 3a3f7e3 commit d5ca920
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ export const useMatrixHistogram = ({
const refetch = useRef<inputsModel.Refetch>(noop);
const abortCtrl = useRef(new AbortController());
const [loading, setLoading] = useState(false);
const [
matrixHistogramRequest,
setMatrixHistogramRequest,
] = useState<MatrixHistogramRequestOptions>({
const [matrixHistogramRequest, setMatrixHistogramRequest] = useState<
MatrixHistogramRequestOptions
>({
defaultIndex: indexNames,
factoryQueryType: MatrixHistogramQuery,
filterQuery: createFilter(filterQuery),
Expand Down Expand Up @@ -171,7 +170,7 @@ export const useMatrixHistogram = ({
},
stackByField,
threshold,
...(prevRequest.isPtrIncluded != null ? { isPtrIncluded } : {}),
...(isPtrIncluded != null ? { isPtrIncluded } : {}),
...(!isEmpty(docValueFields) ? { docValueFields } : {}),
};
if (!deepEqual(prevRequest, myRequest)) {
Expand Down

0 comments on commit d5ca920

Please sign in to comment.