Skip to content

Commit

Permalink
fix #528
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Mar 17, 2023
1 parent a8c3e35 commit 6c48e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zntrack/fields/zn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ def get_stage_add_argument(self, instance) -> typing.List[tuple]:
class _SaveNodes(znflow.utils.IterableHandler):
def default(self, value, **kwargs):
name = kwargs["name"]
if hasattr(value, "save"):
if isinstance(value, znflow.Node):
value.name = name
value.save()
value.save(results=False)
return value


Expand Down

0 comments on commit 6c48e13

Please sign in to comment.