mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
[Explore] Save custom url parameters when user save slices (#4578)
* [Explore] Save url parameters when user save slices * remove print (cherry picked from commitbd9ecbe) * add unit test (cherry picked from commit0f350ad) * wrapping all request params into url_params (cherry picked from commit17197c1)
This commit is contained in:
@@ -293,6 +293,13 @@ 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