diff --git a/superset/assets/javascripts/explorev2/stores/store.js b/superset/assets/javascripts/explorev2/stores/store.js index 28c50b73a5ae..d0e31c050898 100644 --- a/superset/assets/javascripts/explorev2/stores/store.js +++ b/superset/assets/javascripts/explorev2/stores/store.js @@ -55,6 +55,9 @@ export function getControlsState(state, form_data) { } // Removing invalid filters that point to a now inexisting column if (control.type === 'FilterControl' && control.choices) { + if (!formData[k]) { + formData[k] = []; + } const choiceValues = control.choices.map(c => c[0]); formData[k] = formData[k].filter(flt => choiceValues.indexOf(flt.col) >= 0); }