fixed delete community

This commit is contained in:
hannathkadher
2024-11-21 13:02:48 +04:00
parent 8a7f9ab2dc
commit 288360f1af
5 changed files with 64 additions and 28 deletions

View File

@ -56,13 +56,15 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
);
if (selectedIndex != -1) {
selectedCommunity = state.communities[selectedIndex];
} else {
selectedCommunity = null;
selectedSpace = null;
}
return LoadedSpaceView(
communities: state.communities,
selectedCommunity: selectedCommunity,
selectedSpace: selectedSpace,
products:state.products,
products: state.products,
onCommunitySelected: (community) {
setState(() {
selectedCommunity = community;