Fixed autocompletes #150
This commit is contained in:
parent
7646335d03
commit
33fb973f21
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user