Skip to content

Commit

Permalink
Fix step file
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Feb 8, 2024
1 parent 6246415 commit ce7f444
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/jupytercad_core/jupytercad_core/step_ydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def set(self, value: str) -> None:
:param value: The content of the document.
:type value: Any
"""
with self._ydoc.transaction() as t:
self._ysource.extend(t, value)
self._ysource[:] = value

def observe(self, callback: Callable[[str, Any], None]):
self.unobserve()
Expand Down

0 comments on commit ce7f444

Please sign in to comment.