fix: ensure setting operator to None (#16371) (#16372)

This commit is contained in:
grumpy-miner
2021-08-31 11:53:40 +02:00
committed by GitHub
parent f001c44727
commit 1f1e2dd29a

View File

@@ -297,7 +297,7 @@ class ExtraCache:
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"