Skip to content

Commit

Permalink
removed unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
oatkiller committed Jun 7, 2020
1 parent 3dd03f1 commit 5705a93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ import { MatrixLoader } from './matrix_loader';
import { Panel } from '../panel';
import { getBarchartConfigs, getCustomChartData } from './utils';
import { useQuery } from '../../containers/matrix_histogram';
import {
MatrixHistogramProps,
MatrixHistogramOption,
HistogramAggregation,
MatrixHistogramQueryProps,
} from './types';
import { MatrixHistogramProps, MatrixHistogramOption, MatrixHistogramQueryProps } from './types';
import { InspectButtonContainer } from '../inspect';

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

const { data, loading, inspect, totalCount, refetch = noop } = useQuery<{}, HistogramAggregation>(
{
endDate,
errorMessage,
filterQuery,
histogramType,
indexToAdd,
startDate,
isInspected,
stackByField: selectedStackByOption.value,
}
);
const { data, loading, inspect, totalCount, refetch = noop } = useQuery({
endDate,
errorMessage,
filterQuery,
histogramType,
indexToAdd,
startDate,
isInspected,
stackByField: selectedStackByOption.value,
});

const titleWithStackByField = useMemo(
() => (title != null && typeof title === 'function' ? title(selectedStackByOption) : title),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ export interface GroupBucket {
};
}

export interface HistogramAggregation {
histogramAgg: {
buckets: GroupBucket[];
};
}

export interface BarchartConfigs {
series: {
xScaleType: ScaleType;
Expand Down

0 comments on commit 5705a93

Please sign in to comment.