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:
michellethomas
2018-08-15 11:25:06 -07:00
committed by Grace Guo
parent 4e3b2e7cbc
commit bf0afef7a9
6 changed files with 37 additions and 48 deletions

View File

@@ -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 {