mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: small fixes to the new import/export (#12064)
This commit is contained in:
@@ -50,7 +50,7 @@ class ExportDatabasesCommand(ExportModelsCommand):
|
||||
)
|
||||
# TODO (betodealmeida): move this logic to export_to_dict once this
|
||||
# becomes the default export endpoint
|
||||
if "extra" in payload:
|
||||
if payload.get("extra"):
|
||||
try:
|
||||
payload["extra"] = json.loads(payload["extra"])
|
||||
except json.decoder.JSONDecodeError:
|
||||
|
||||
Reference in New Issue
Block a user