From 29d2abc0f19df45325220d875481e34c073caa58 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 2 Feb 2023 12:43:40 +0100 Subject: [PATCH] feat(chalice): return default_config in get-dashboard response --- api/chalicelib/core/dashboards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/dashboards.py b/api/chalicelib/core/dashboards.py index 4c3212c0d..1323843d6 100644 --- a/api/chalicelib/core/dashboards.py +++ b/api/chalicelib/core/dashboards.py @@ -86,7 +86,7 @@ def get_dashboard(project_id, user_id, dashboard_id): w["edited_at"] = TimeUTC.datetime_to_timestamp(w["edited_at"]) w["config"]["col"] = w["default_config"]["col"] w["config"]["row"] = w["default_config"]["row"] - w.pop("default_config") + # w.pop("default_config") for s in w["series"]: s["created_at"] = TimeUTC.datetime_to_timestamp(s["created_at"]) return helper.dict_to_camel_case(row)