Skip to content

Commit

Permalink
Fixing exploring a table
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 23, 2017
1 parent dc05be3 commit f931838
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/assets/javascripts/explorev2/stores/store.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit f931838

Please sign in to comment.