Skip to content

Commit

Permalink
fix: dashboard standalone class not added when parameter set (apache#…
Browse files Browse the repository at this point in the history
…16619)

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
  • Loading branch information
2 people authored and philipher29 committed Jun 9, 2022
1 parent d0cf88e commit 4cdcc97
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 @@ -1927,6 +1927,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 @@ -1945,6 +1947,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 4cdcc97

Please sign in to comment.