diff --git a/lib/pages/spaces_management/view/spaces_management_page.dart b/lib/pages/spaces_management/view/spaces_management_page.dart index b69b440c..e41af548 100644 --- a/lib/pages/spaces_management/view/spaces_management_page.dart +++ b/lib/pages/spaces_management/view/spaces_management_page.dart @@ -4,7 +4,6 @@ import 'package:syncrow_web/pages/common/buttons/add_space_button.dart'; import 'package:syncrow_web/pages/spaces_management/bloc/space_management_bloc.dart'; import 'package:syncrow_web/pages/spaces_management/bloc/space_management_event.dart'; import 'package:syncrow_web/pages/spaces_management/bloc/space_management_state.dart'; -import 'package:syncrow_web/pages/spaces_management/model/community_model.dart'; import 'package:syncrow_web/pages/spaces_management/model/space_model.dart'; import 'package:syncrow_web/pages/spaces_management/view/curved_line_painter.dart'; import 'package:syncrow_web/pages/spaces_management/view/dialogs/create_space_dialog.dart'; @@ -36,7 +35,6 @@ class SpaceManagementPageState extends State { super.initState(); } - @override Widget build(BuildContext context) { Size screenSize = MediaQuery.of(context).size; @@ -210,7 +208,6 @@ class SpaceManagementPageState extends State { ], ), ), - ); } diff --git a/lib/pages/spaces_management/widgets/sidebar_widget.dart b/lib/pages/spaces_management/widgets/sidebar_widget.dart index 68d811ff..a91d9977 100644 --- a/lib/pages/spaces_management/widgets/sidebar_widget.dart +++ b/lib/pages/spaces_management/widgets/sidebar_widget.dart @@ -26,27 +26,6 @@ class _SidebarWidgetState extends State { @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 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() {