fix(Dashboard): Save empty label_colors in json_metadata (#17462)

* Save empty label_colors

* Format
This commit is contained in:
Geido 2021-11-18 19:11:49 +02:00 committed by GitHub
parent 377db1bd71
commit b2363e4151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -241,10 +241,9 @@ class DashboardDAO(BaseDAO):
}
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