diff --git a/flinventory_gui/search.py b/flinventory_gui/search.py index 7130ffe..bd7cbf9 100644 --- a/flinventory_gui/search.py +++ b/flinventory_gui/search.py @@ -128,7 +128,7 @@ async def list_parts(ui_element: nicegui.ui.element, parts: Iterable[Part]) -> N # gives other searches 10 ms time to abort this display which might take long await asyncio.sleep(0.01) ui_element.clear() - with ((ui_element)): + with ui_element: for part in parts: card = ui.card() # supplying card and part as default arguments makes it use the current