diff --git a/application/main.py b/application/main.py index f93d121..f411650 100644 --- a/application/main.py +++ b/application/main.py @@ -481,7 +481,9 @@ def set_list_item_background(self, old_index: int, new_index: int): new_item.classes |= {"selected"} self.current_index = new_index - docker_manager.selected_container = str(new_item.children[0].renderable) + docker_manager.selected_container = docker_manager.containers.get( + str(new_item.children[0].renderable) + ) logs.border_title = docker_manager.selected_container.name @on(TabbedContent.TabActivated)