Skip to content

Commit

Permalink
fix: ensure setting operator to None (#16371) (#16372)
Browse files Browse the repository at this point in the history
  • Loading branch information
grumpy-miner committed Aug 31, 2021
1 parent f001c44 commit 1f1e2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/jinja_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def get_filters(self, column: str, remove_filter: bool = False) -> List[Filter]:

for flt in form_data.get("adhoc_filters", []):
val: Union[Any, List[Any]] = flt.get("comparator")
op: str = flt["operator"].upper() if "operator" in flt else None
op: str = flt["operator"].upper() if flt.get("operator") else None
# fltOpName: str = flt.get("filterOptionName")
if (
flt.get("expressionType") == "SIMPLE"
Expand Down

0 comments on commit 1f1e2dd

Please sign in to comment.