fix(aurora): fixed an issue with importing changes
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 43s

This commit is contained in:
Seaswimmer 2024-05-06 13:44:48 -04:00
parent 85a935f9b3
commit 6745f0a486
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -72,6 +72,10 @@ class ImportAuroraView(ui.View):
if "changes" not in case or not case["changes"]:
case["changes"] = []
else:
case["changes"] = json.loads(case["changes"])
if isinstance(case["changes"], str):
case["changes"] = json.loads(case["changes"])
if "metadata" not in case:
metadata = {}