mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
Temp hack to make druid filters work in dashboard (#2300)
This commit is contained in:
@@ -100,9 +100,6 @@ export default class Filter extends React.Component {
|
||||
// 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"
|
||||
@@ -113,9 +110,6 @@ 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