From fefe37a5575a9e5e9959bf1eb0e332ca54303b5c Mon Sep 17 00:00:00 2001 From: Cedric Gampert Date: Wed, 20 Apr 2022 09:03:59 +0200 Subject: [PATCH] fix: dashboard standalone class not added when parameter set (#16619) Co-authored-by: Ville Brofeldt --- superset/views/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/superset/views/core.py b/superset/views/core.py index 27a9a039b2d7b..1aa348d71300a 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -1926,6 +1926,8 @@ def dashboard( request.args.get(utils.ReservedUrlParameters.EDIT_MODE.value) == "true" ) + standalone_mode = ReservedUrlParameters.is_standalone_mode() + add_extra_log_payload( dashboard_id=dashboard.id, dashboard_version="v2", @@ -1944,6 +1946,7 @@ def dashboard( bootstrap_data=json.dumps( bootstrap_data, default=utils.pessimistic_json_iso_dttm_ser ), + standalone_mode=standalone_mode, ) @has_access