mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
v0.17.0 (#2298)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user