This repository was archived by the owner on Jul 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
superset-frontend/src/explore/components Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 19
19
import React , { ReactNode } from 'react' ;
20
20
import { ControlType } from '@superset-ui/chart-controls' ;
21
21
import { JsonValue , QueryFormData } from '@superset-ui/core' ;
22
+ import ErrorBoundary from 'src/components/ErrorBoundary' ;
22
23
import { ExploreActions } from 'src/explore/actions/exploreActions' ;
23
24
import controlMap from './controls' ;
24
25
@@ -78,11 +79,13 @@ export default class Control extends React.PureComponent<
78
79
onMouseEnter = { this . onMouseEnter }
79
80
onMouseLeave = { this . onMouseLeave }
80
81
>
81
- < ControlComponent
82
- onChange = { this . onChange }
83
- hovered = { this . state . hovered }
84
- { ...this . props }
85
- />
82
+ < ErrorBoundary >
83
+ < ControlComponent
84
+ onChange = { this . onChange }
85
+ hovered = { this . state . hovered }
86
+ { ...this . props }
87
+ />
88
+ </ ErrorBoundary >
86
89
</ div >
87
90
) ;
88
91
}
Original file line number Diff line number Diff line change 16
16
* specific language governing permissions and limitations
17
17
* under the License.
18
18
*/
19
+ import { sharedControlComponents } from '@superset-ui/chart-controls' ;
19
20
import AnnotationLayerControl from './AnnotationLayerControl' ;
20
21
import BoundsControl from './BoundsControl' ;
21
22
import CheckboxControl from './CheckboxControl' ;
@@ -73,5 +74,6 @@ const controlMap = {
73
74
MetricsControl,
74
75
AdhocFilterControl,
75
76
FilterBoxItemControl,
77
+ ...sharedControlComponents ,
76
78
} ;
77
79
export default controlMap ;
You can’t perform that action at this time.
0 commit comments