Exclude selected clients from schedule on mobile

This commit is contained in:
Hillel Coren 2023-03-17 12:10:45 +02:00
parent c964e30374
commit 92a1cfef2b
1 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,9 @@ class _EntityDropdownState extends State<EntityDropdown> {
builder: (BuildContext context) {
return EntityDropdownDialog(
entityMap: _entityMap,
entityList: widget.entityList ?? _entityMap.keys.toList(),
entityList: (widget.entityList ?? _entityMap.keys)
.where((elementId) => !widget.excludeIds.contains(elementId))
.toList(),
onSelected: (entity, [update = true]) {
if (entity?.id == widget.entityId) {
return;