mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49: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:
@@ -109,6 +109,13 @@ export function applyDefaultFormData(form_data) {
|
||||
formData[k] = form_data[k];
|
||||
}
|
||||
});
|
||||
// fill in additional params stored in form_data but not used by control
|
||||
Object.keys(form_data)
|
||||
.forEach((key) => {
|
||||
if (formData[key] === undefined) {
|
||||
formData[key] = form_data[key];
|
||||
}
|
||||
});
|
||||
return formData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user