fix: wrong type for filters field (#183)

This commit is contained in:
Krist Wongsuphasawat 2019-06-19 12:48:38 -07:00 committed by Yongjie Zhao
parent 34e2e621e9
commit 3d6d622b18

View File

@ -9,7 +9,7 @@ type SnakeCaseDatasource = PlainObject;
type CamelCaseFormData = PlainObject;
type SnakeCaseFormData = PlainObject;
export type QueryData = PlainObject;
type Filters = any[];
type Filters = PlainObject;
type ChartPropsSelector = (c: ChartPropsConfig) => ChartProps;
export interface ChartPropsConfig {
@ -54,7 +54,7 @@ export default class ChartProps {
const {
annotationData = {},
datasource = {},
filters = [],
filters = {},
formData = {},
hooks = {},
onAddFilter = NOOP,