Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Maarten Breddels <maartenbreddels@gmail.com>
  • Loading branch information
iisakkirotko and maartenbreddels authored Oct 25, 2024
1 parent f877bfd commit 0d48ba2
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 @@ -309,7 +309,7 @@ def on_viewer_close(index: int):
mdi_layouts.set(new_mdi_layouts)

# Remove the viewer from grid layouts
new_grid_layout = grid_layout.value
new_grid_layout = copy.deepcopy(grid_layout.value)
new_grid_layout.pop(index)
# We need to update the indices of the viewers in the grid layout, otherwise we get placeholder elements
for layout in new_grid_layout:
Expand Down

0 comments on commit 0d48ba2

Please sign in to comment.