mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
removed logs
This commit is contained in:
@ -274,15 +274,11 @@ class HomeCubit extends Cubit<HomeState> {
|
||||
}
|
||||
|
||||
fetchRoomsByUnitId(SpaceModel space) async {
|
||||
print("Community ID: ${space.community.uuid}");
|
||||
print("Space ID: ${space.id}");
|
||||
|
||||
emitSafe(GetSpaceRoomsLoading());
|
||||
try {
|
||||
space.subspaces =
|
||||
await SpacesAPI.getSubSpaceBySpaceId(space.community.uuid, space.id);
|
||||
} catch (failure) {
|
||||
print("Error fetching subspaces: $failure");
|
||||
|
||||
emitSafe(GetSpaceRoomsError(failure.toString()));
|
||||
return;
|
||||
|
@ -15,7 +15,7 @@ class SubSpaceModel {
|
||||
return {
|
||||
'id': id,
|
||||
'name': name,
|
||||
'devices': devices,
|
||||
'devices': devices?.map((device) => device.toJson()).toList(),
|
||||
};
|
||||
}
|
||||
|
||||
@ -28,8 +28,8 @@ class SubSpaceModel {
|
||||
}
|
||||
return SubSpaceModel(
|
||||
id: json['uuid'],
|
||||
name: json['name'],
|
||||
devices: [],
|
||||
name: json['subspaceName'],
|
||||
devices: devices,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user