Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Jan 11, 2021
1 parent b25aeaa commit 7f6bea2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/superset-ui-chart-controls/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ export * from './components/MetricOption';
// React control components
export * from './components/RadioButtonControl';
export * from './types';

// re-export * from pure types file may cause
// `module undefined` error in babel/webpack,
export { default as __hack__ } from './types';
2 changes: 2 additions & 0 deletions packages/superset-ui-chart-controls/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,3 +325,5 @@ export type ControlOverrides = {
export type SectionOverrides = {
[P in SharedSectionAlias]?: Partial<ControlPanelSectionConfig>;
};

export default {};
5 changes: 2 additions & 3 deletions packages/superset-ui-core/src/chart/models/ChartProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createSelector } from 'reselect';
import { convertKeysToCamelCase, Datasource } from '../..';
import { HandlerFunction, PlainObject, SetExtraFormDataHook } from '../types/Base';
import { QueryData, DataRecordFilters } from '..';
import { QueryFormData } from '../../query';

// TODO: more specific typing for these fields of ChartProps
type AnnotationData = PlainObject;
Expand Down Expand Up @@ -57,7 +56,7 @@ export interface ChartPropsConfig {
const DEFAULT_WIDTH = 800;
const DEFAULT_HEIGHT = 600;

export default class ChartProps<FormData extends RawFormData = QueryFormData> {
export default class ChartProps<FormData extends RawFormData = RawFormData> {
static createSelector: () => ChartPropsSelector;

annotationData: AnnotationData;
Expand All @@ -84,7 +83,7 @@ export default class ChartProps<FormData extends RawFormData = QueryFormData> {
const {
annotationData = {},
datasource = {},
formData = {},
formData = {} as FormData,
hooks = {},
initialValues = {},
queriesData = [],
Expand Down

0 comments on commit 7f6bea2

Please sign in to comment.