filter by space

This commit is contained in:
hannathkadher
2024-10-22 11:31:49 +04:00
parent 0b0fee2e26
commit 64b84fed82

View File

@ -286,10 +286,11 @@ class DeviceManagementBloc
false); false);
final matchesUnit = event.unitName == null || final matchesUnit = event.unitName == null ||
event.unitName!.isEmpty || event.unitName!.isEmpty ||
(device.unit?.name (device.spaces != null &&
?.toLowerCase() device.spaces!.isNotEmpty &&
.contains(event.unitName!.toLowerCase()) ?? device.spaces![0].spaceName
false); !.toLowerCase()
.contains(event.unitName!.toLowerCase()));
final matchesProductName = event.productName == null || final matchesProductName = event.productName == null ||
event.productName!.isEmpty || event.productName!.isEmpty ||
(device.name (device.name