Temp hack to make druid filters work in dashboard (#2300)

This commit is contained in:
vera-liu
2017-02-28 16:54:42 -08:00
committed by GitHub
parent fc64a75fbd
commit efff1ac4a1
2 changed files with 2 additions and 6 deletions

View File

@@ -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