diff --git a/superset/utils/core.py b/superset/utils/core.py index ce55814b22a..b927742b4e9 100644 --- a/superset/utils/core.py +++ b/superset/utils/core.py @@ -941,7 +941,7 @@ def get_example_database(): def is_adhoc_metric(metric) -> bool: - return ( + return bool( isinstance(metric, dict) and ( (