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
trepmag and villebro authored May 11, 2022
1 parent 80bf1da commit fefe37a
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 fefe37a

Please sign in to comment.