mirror of
https://github.com/apache/superset.git
synced 2026-06-02 06:09:21 +00:00
Fix form data issue switching viz types (#5100)
* Fixing issue with extra params in formData * Pass in param use_slice_data to decide whether to use slice data * Fixing core_tests to not use explore_json overrides
This commit is contained in:
committed by
Grace Guo
parent
4e3b2e7cbc
commit
bf0afef7a9
@@ -293,12 +293,6 @@ ExploreViewContainer.propTypes = propTypes;
|
||||
|
||||
function mapStateToProps({ explore, charts, impressionId }) {
|
||||
const form_data = getFormDataFromControls(explore.controls);
|
||||
// fill in additional params stored in form_data but not used by control
|
||||
Object.keys(explore.rawFormData).forEach((key) => {
|
||||
if (form_data[key] === undefined) {
|
||||
form_data[key] = explore.rawFormData[key];
|
||||
}
|
||||
});
|
||||
const chartKey = Object.keys(charts)[0];
|
||||
const chart = charts[chartKey];
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user