mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-27 20:14:55 +00:00
removed logs
This commit is contained in:
@ -26,27 +26,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_logCommunitySpaces(); // Log the structure on initialization
|
||||
}
|
||||
|
||||
// Function to log the communitySpaces data structure for debugging
|
||||
void _logCommunitySpaces() {
|
||||
debugPrint('Logging communitySpaces structure:');
|
||||
widget.communitySpaces.forEach((communityName, spaces) {
|
||||
debugPrint('Community: $communityName');
|
||||
_logSpaces(spaces, 1);
|
||||
});
|
||||
}
|
||||
|
||||
// Helper function to log the spaces and their children
|
||||
void _logSpaces(List<SpaceModel> spaces, int level) {
|
||||
for (SpaceModel space in spaces) {
|
||||
debugPrint(
|
||||
'${' ' * level}Space: ${space.name}, UUID: ${space.uuid}, Has children: ${space.children.isNotEmpty}');
|
||||
if (space.children.isNotEmpty) {
|
||||
_logSpaces(space.children, level + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void _showCreateCommunityDialog() {
|
||||
|
||||
Reference in New Issue
Block a user