Skip to content

Commit 2a84832

Browse files
committed
Merge branch 'feat/queue-based-graph-engine' into feat/rag-2
2 parents aeaeb28 + ef974e4 commit 2a84832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/models/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def environment_variables(self) -> Sequence[StringVariable | IntegerVariable | F
368368
if not tenant_id:
369369
return []
370370

371-
environment_variables_dict: dict[str, Any] = json.loads(self._environment_variables)
371+
environment_variables_dict: dict[str, Any] = json.loads(self._environment_variables or "{}")
372372
results = [
373373
variable_factory.build_environment_variable_from_mapping(v) for v in environment_variables_dict.values()
374374
]

0 commit comments

Comments
 (0)