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.

This commit is contained in:
Faris Armoush
2025-07-24 09:47:39 +03:00
parent e98b091253
commit f341dcd482

View File

@ -58,9 +58,6 @@ class CommunityStructureHeaderActionButtonsComposer extends StatelessWidget {
context.read<CommunitiesBloc>().add( context.read<CommunitiesBloc>().add(
CommunitiesUpdateCommunity(updatedCommunity), CommunitiesUpdateCommunity(updatedCommunity),
); );
context.read<CommunitiesTreeSelectionBloc>().add(
SelectCommunityEvent(community: updatedCommunity),
);
}, },
), ),
), ),