Skip to content

Commit 3fc2786

Browse files
committed
Fix XYHandle conversion
1 parent bd375c3 commit 3fc2786

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/xyflow/data_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def to_dict(self) -> dict[str, Any]:
125125

126126
# Convert XYHandle list to list of dicts if present
127127
if self.handles is not None:
128-
node_dict["handles"] = [asdict(h) for h in self.handles]
128+
node_dict["handles"] = [_dataclass_to_dict(h) for h in self.handles]
129129

130130
if self.extra:
131131
node_dict.update(self.extra)

0 commit comments

Comments
 (0)