fix: handle empty JSON String in Template loading (#8200)

Merge branch 'main' into feat-new-tavily-bundle
This commit is contained in:
Edwin Jose 2025-05-23 18:39:56 -04:00 committed by GitHub
commit f73ba66094
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,6 +149,8 @@ def update_projects_components_with_latest_component_versions(project_data, all_
def scape_json_parse(json_string: str) -> dict:
if json_string is None:
return {}
if isinstance(json_string, dict):
return json_string
parsed_string = json_string.replace("œ", '"')