fix: ensure json is not None (#24280)
This commit is contained in:
parent
c5ea40fb44
commit
40fffc396c
|
|
@ -59,7 +59,7 @@ def upgrade():
|
|||
#
|
||||
needs_upgrade = True
|
||||
try:
|
||||
json_metadata = json.loads(dashboard.json_metadata)
|
||||
json_metadata = json.loads(dashboard.json_metadata or "{}")
|
||||
new_chart_configuration = {}
|
||||
for config in json_metadata.get("chart_configuration", {}).values():
|
||||
chart_id = int(config.get("id", 0))
|
||||
|
|
|
|||
Loading…
Reference in New Issue