Fixed autocompletes (#150) #160

Merged
edraft merged 2 commits from #150 into 0.3 2023-01-04 11:30:23 +01:00
Showing only changes of commit 33fb973f21 - Show all commits

View File

@ -91,6 +91,11 @@ class ClientUtilsService(ClientUtilsServiceABC):
if select is None:
select = lambda x: x
_l = _l.skip(_l.select(select).index_of(current))
sl = _l.select(select)
sl = sl.where(lambda x: current in x)
if current in sl:
sl = sl.skip(sl.index_of(current))
_l = _l.where(lambda x: x.name in sl)
return _l.take(25)