Skip to content

Commit

Permalink
Fixing tally
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 26, 2017
1 parent f9852bc commit 8f76af1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset/assets/javascripts/explorev2/stores/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export function getControlsState(state, form_data) {
Object.assign(control, control.mapStateToProps(state));
delete control.mapStateToProps;
}
console.log(k);
if (k=='metrics') {
console.log(control);
}

// If the value is not valid anymore based on choices, clear it
if (control.type === 'SelectControl' && control.choices && k !== 'datasource' && formData[k]) {
Expand Down
6 changes: 6 additions & 0 deletions superset/assets/javascripts/explorev2/stores/visTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ const visTypes = {
],
},
],
controlOverrides: {
metrics: {
default: null,
validators: null,
},
},
},

markup: {
Expand Down

0 comments on commit 8f76af1

Please sign in to comment.