Skip to content

Commit f73ba66

Browse files
fix: handle empty JSON String in Template loading (#8200)
Merge branch 'main' into feat-new-tavily-bundle
1 parent a5ce562 commit f73ba66

File tree

1 file changed

+2
-0
lines changed
  • src/backend/base/langflow/initial_setup

1 file changed

+2
-0
lines changed

src/backend/base/langflow/initial_setup/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def update_projects_components_with_latest_component_versions(project_data, all_
149149

150150

151151
def scape_json_parse(json_string: str) -> dict:
152+
if json_string is None:
153+
return {}
152154
if isinstance(json_string, dict):
153155
return json_string
154156
parsed_string = json_string.replace("œ", '"')

0 commit comments

Comments
 (0)