Skip to content

Commit 4d38d80

Browse files
authored
Fix bug when clearing Tabs (#374)
1 parent 8c6f2e6 commit 4d38d80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/panel_material_ui/layout

src/panel_material_ui/layout/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def _process_close(self, ref, attr, old, new):
409409
"""
410410
Handle closed tabs.
411411
"""
412-
model, _ = self._models.get(ref)
412+
model, _ = self._models.get(ref, (None, None))
413413
if model:
414414
try:
415415
inds = [old.index(tab) for tab in new]

0 commit comments

Comments
 (0)