Merge pull request #4991 from michellethomas/fix_filter_blank_custom_sql
[Bugfix] Allowing sqlExpression to be blank
This commit is contained in:
commit
071c6a6c03
|
|
@ -45,7 +45,8 @@ export default class AdhocFilter {
|
|||
this.clause = adhocFilter.clause;
|
||||
this.sqlExpression = null;
|
||||
} else if (this.expressionType === EXPRESSION_TYPES.SQL) {
|
||||
this.sqlExpression = adhocFilter.sqlExpression ||
|
||||
this.sqlExpression = typeof adhocFilter.sqlExpression === 'string' ?
|
||||
adhocFilter.sqlExpression :
|
||||
translateToSql(adhocFilter, { useSimple: true });
|
||||
this.clause = adhocFilter.clause;
|
||||
this.subject = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue