Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(native filters): Fix explore state - backend pagination checkbox in table #14779

Merged
merged 9 commits into from May 24, 2021
Expand Up @@ -561,7 +561,7 @@ function mapStateToProps(state) {
form_data.extra_form_data = mergeExtraFormData(
{ ...form_data.extra_form_data },
{
...dataMask[form_data.slice_id]?.ownState,
...dataMask[form_data.slice_id ?? 0]?.ownState, // 0 - unsaved chart
},
);
const chartKey = Object.keys(charts)[0];
Expand Down Expand Up @@ -593,7 +593,7 @@ function mapStateToProps(state) {
forcedHeight: explore.forced_height,
chart,
timeout: explore.common.conf.SUPERSET_WEBSERVER_TIMEOUT,
ownState: dataMask[form_data.slice_id]?.ownState,
ownState: dataMask[form_data.slice_id ?? 0]?.ownState, // 0 - unsaved chart
impressionId,
userId: explore.user_id,
};
Expand Down