From f341dcd48242dd64687f8e2412fe5161d7718e8f Mon Sep 17 00:00:00 2001 From: Faris Armoush Date: Thu, 24 Jul 2025 09:47:39 +0300 Subject: [PATCH] Remove unnecessary event dispatch in `CommunityStructureHeaderActionButtonsComposer` to streamline community update logic. This change enhances code clarity by eliminating the selection event for the community, focusing solely on the update action. --- .../community_structure_header_action_buttons_composer.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/pages/space_management_v2/main_module/widgets/community_structure_header_action_buttons_composer.dart b/lib/pages/space_management_v2/main_module/widgets/community_structure_header_action_buttons_composer.dart index ef1ceac4..b2a41274 100644 --- a/lib/pages/space_management_v2/main_module/widgets/community_structure_header_action_buttons_composer.dart +++ b/lib/pages/space_management_v2/main_module/widgets/community_structure_header_action_buttons_composer.dart @@ -58,9 +58,6 @@ class CommunityStructureHeaderActionButtonsComposer extends StatelessWidget { context.read().add( CommunitiesUpdateCommunity(updatedCommunity), ); - context.read().add( - SelectCommunityEvent(community: updatedCommunity), - ); }, ), ),