Skip to content

Commit

Permalink
fix: avoid mutating reactive values with deepcopy (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko authored Oct 25, 2024
1 parent b86084c commit 8607561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue_solara/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def Viewers(
):
def on_viewer_close(index: int):
# Remove the viewer from MDI layouts
new_mdi_layouts = mdi_layouts.value
new_mdi_layouts = copy.deepcopy(mdi_layouts.value)
new_mdi_layouts.pop(index)
mdi_layouts.set(new_mdi_layouts)

Expand Down

0 comments on commit 8607561

Please sign in to comment.