Skip to content

Commit

Permalink
Allowing sqlExpression to be blank
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas committed May 11, 2018
1 parent 7d5195a commit ad4912d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/assets/src/explore/AdhocFilter.js
Expand Up @@ -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;
Expand Down

0 comments on commit ad4912d

Please sign in to comment.