mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Added setFilter(), containerID and getFilter() to (#1360)
mock slice object in exploreV2 - filter_box in exploreV2 was broken because containerID and getFilter() were not defined in the mock of slice object
This commit is contained in:
parent
ea189790f1
commit
98afc3e590
@ -32,6 +32,8 @@ class ChartContainer extends React.Component {
|
|||||||
|
|
||||||
getMockedSliceObject() {
|
getMockedSliceObject() {
|
||||||
return {
|
return {
|
||||||
|
containerId: this.props.containerId,
|
||||||
|
|
||||||
jsonEndpoint: () => this.props.jsonEndpoint,
|
jsonEndpoint: () => this.props.jsonEndpoint,
|
||||||
|
|
||||||
container: {
|
container: {
|
||||||
@ -62,6 +64,16 @@ class ChartContainer extends React.Component {
|
|||||||
|
|
||||||
selector: this.state.selector,
|
selector: this.state.selector,
|
||||||
|
|
||||||
|
setFilter: () => {
|
||||||
|
// set filter according to data in store
|
||||||
|
// used in FilterBox.onChange()
|
||||||
|
},
|
||||||
|
|
||||||
|
getFilters: () => (
|
||||||
|
// return filter objects from viz.formData
|
||||||
|
{}
|
||||||
|
),
|
||||||
|
|
||||||
done: () => {
|
done: () => {
|
||||||
// finished rendering callback
|
// finished rendering callback
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user