mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
Pass datasource as form_data param (#4538)
* Pass datasource as form_data param * add comma after datasource * change test to match new addSlice
This commit is contained in:
@@ -23,7 +23,11 @@ export default class AddSliceContainer extends React.PureComponent {
|
||||
}
|
||||
|
||||
exploreUrl() {
|
||||
const formData = encodeURIComponent(JSON.stringify({ viz_type: this.state.visType }));
|
||||
const formData = encodeURIComponent(
|
||||
JSON.stringify({
|
||||
viz_type: this.state.visType,
|
||||
datasource: this.state.datasourceValue,
|
||||
}));
|
||||
return `/superset/explore/?form_data=${formData}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user