Commit 05258eb 1 parent 8f1ac7e commit 05258eb Copy full SHA for 05258eb
File tree 2 files changed +2
-3
lines changed
superset-frontend/src/explore/components/controls
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,9 @@ export default class SelectControl extends React.PureComponent {
102
102
// Beware: This is acting like an on-click instead of an on-change
103
103
// (firing every time user chooses vs firing only if a new option is chosen).
104
104
onChange ( opt ) {
105
- let optionValue = null ;
105
+ let optionValue = this . props . multi ? [ ] : null ;
106
106
if ( opt ) {
107
107
if ( this . props . multi ) {
108
- optionValue = [ ] ;
109
108
opt . forEach ( o => {
110
109
// select all options
111
110
if ( o . meta === true ) {
Original file line number Diff line number Diff line change @@ -2701,7 +2701,7 @@ def query_obj(self) -> QueryObjectDict:
2701
2701
entity_key = form_data ["entity" ]
2702
2702
meta_keys = [
2703
2703
col
2704
- for col in form_data ["all_columns" ]
2704
+ for col in form_data ["all_columns" ] or []
2705
2705
if col != event_key and col != entity_key
2706
2706
]
2707
2707
You can’t perform that action at this time.
0 commit comments