From 0d48ba2ffd33d055117fa3d51a45ff5a8d322b4a Mon Sep 17 00:00:00 2001 From: Iisakki Rotko Date: Fri, 25 Oct 2024 12:40:35 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Maarten Breddels --- glue_solara/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glue_solara/app.py b/glue_solara/app.py index e62e4df..a4f2ff5 100644 --- a/glue_solara/app.py +++ b/glue_solara/app.py @@ -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: