Skip to content

Commit

Permalink
fix: dashboard standalone class not added when parameter set (#16619)
Browse files Browse the repository at this point in the history
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
  • Loading branch information
trepmag and villebro committed Apr 20, 2022
1 parent dfba9ea commit 5134c63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 5134c63

Please sign in to comment.