diff --git a/src/unit/services/unit.service.ts b/src/unit/services/unit.service.ts index 4906f7d..6969717 100644 --- a/src/unit/services/unit.service.ts +++ b/src/unit/services/unit.service.ts @@ -117,8 +117,9 @@ export class UnitService { (child) => child.spaceType.type !== 'unit' && child.spaceType.type !== 'floor' && - child.spaceType.type !== 'community', - ) // Filter remaining unit and floor and community types + child.spaceType.type !== 'community' && + child.spaceType.type !== 'unit', + ) // Filter remaining unit and floor and community and unit types .map((child) => ({ uuid: child.uuid, name: child.spaceName, @@ -132,8 +133,9 @@ export class UnitService { (child) => child.spaceType.type !== 'unit' && child.spaceType.type !== 'floor' && - child.spaceType.type !== 'community', - ) // Filter remaining unit and floor and community types + child.spaceType.type !== 'community' && + child.spaceType.type !== 'unit', + ) // Filter remaining unit and floor and community and unit types .map(async (child) => ({ uuid: child.uuid, name: child.spaceName,