mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
v0.17.0 (#2298)
This commit is contained in:
parent
dd9f431b6f
commit
fc64a75fbd
@ -97,8 +97,12 @@ export default class Filter extends React.Component {
|
||||
this.fetchFilterValues(filter.col);
|
||||
}
|
||||
}
|
||||
// switching filter value between array/string when needed
|
||||
if (strFilterOps.indexOf(filter.op) !== -1) {
|
||||
// druid having filter or regex/==/!= filters
|
||||
if (typeof filter.val !== 'string') {
|
||||
this.props.changeFilter('val', filter.val.length > 0 ? filter.val[0] : '');
|
||||
}
|
||||
return (
|
||||
<input
|
||||
type="text"
|
||||
@ -109,6 +113,9 @@ export default class Filter extends React.Component {
|
||||
/>
|
||||
);
|
||||
}
|
||||
if (typeof filter.val === 'string') {
|
||||
this.props.changeFilter('val', filter.val === '' ? [] : [filter.val]);
|
||||
}
|
||||
return (
|
||||
<SelectControl
|
||||
multi
|
||||
|
Loading…
Reference in New Issue
Block a user