Skip to content

Commit

Permalink
fix(Dashboard): Save empty label_colors in json_metadata (#17462)
Browse files Browse the repository at this point in the history
* Save empty label_colors

* Format
  • Loading branch information
geido committed Nov 18, 2021
1 parent 377db1b commit b2363e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/dashboards/dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,9 @@ def set_dash_metadata(
}
md["default_filters"] = json.dumps(applicable_filters)
md["color_scheme"] = data.get("color_scheme")
md["label_colors"] = data.get("label_colors")
if data.get("color_namespace"):
md["color_namespace"] = data.get("color_namespace")
if data.get("label_colors"):
md["label_colors"] = data.get("label_colors")
dashboard.json_metadata = json.dumps(md)

@staticmethod
Expand Down

0 comments on commit b2363e4

Please sign in to comment.