diff --git a/superset/dashboards/filter_state/commands/get.py b/superset/dashboards/filter_state/commands/get.py index d81e29d7c2ade..cbddd43693e4c 100644 --- a/superset/dashboards/filter_state/commands/get.py +++ b/superset/dashboards/filter_state/commands/get.py @@ -29,6 +29,6 @@ def get(self, resource_id: int, key: str, refresh_timeout: bool) -> Optional[str entry: Entry = cache_manager.filter_state_cache.get( cache_key(resource_id, key) ) or {} - if dashboard and entry and refresh_timeout: + if entry and refresh_timeout: cache_manager.filter_state_cache.set(key, entry) return entry.get("value")