Skip to content

Commit

Permalink
fix: wrong type for filters field (apache-superset#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored Jun 19, 2019
1 parent d363baa commit 18ef7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/superset-ui-chart/src/models/ChartProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -54,7 +54,7 @@ export default class ChartProps {
const {
annotationData = {},
datasource = {},
filters = [],
filters = {},
formData = {},
hooks = {},
onAddFilter = NOOP,
Expand Down

0 comments on commit 18ef7d9

Please sign in to comment.