diff --git a/lib/pages/space_tree/view/space_tree_view.dart b/lib/pages/space_tree/view/space_tree_view.dart index 92bc858d..63926852 100644 --- a/lib/pages/space_tree/view/space_tree_view.dart +++ b/lib/pages/space_tree/view/space_tree_view.dart @@ -37,8 +37,9 @@ class _SpaceTreeViewState extends State { List list = state.isSearching ? state.filteredCommunity : state.communityList; return Container( height: MediaQuery.sizeOf(context).height, - color: ColorsManager.whiteColors, - decoration: widget.isSide == true ? subSectionContainerDecoration : null, + decoration: widget.isSide == true + ? subSectionContainerDecoration.copyWith(color: ColorsManager.whiteColors) + : const BoxDecoration(color: ColorsManager.whiteColors), child: state is SpaceTreeLoadingState ? const Center(child: CircularProgressIndicator()) : Column( diff --git a/lib/pages/spaces_management/link_space_model/bloc/link_space_to_model_bloc.dart b/lib/pages/spaces_management/link_space_model/bloc/link_space_to_model_bloc.dart index c789c2a9..5b85e17e 100644 --- a/lib/pages/spaces_management/link_space_model/bloc/link_space_to_model_bloc.dart +++ b/lib/pages/spaces_management/link_space_model/bloc/link_space_to_model_bloc.dart @@ -28,10 +28,11 @@ class LinkSpaceToModelBloc try { BuildContext context = NavigationService.navigatorKey.currentContext!; var spaceBloc = context.read(); + spacesListIds.clear(); for (var communityId in spaceBloc.state.selectedCommunities) { List spacesList = spaceBloc.state.selectedCommunityAndSpaces[communityId] ?? []; - spacesListIds = spacesList; + spacesListIds.addAll(spacesList); } hasSelectedSpaces = spaceBloc.state.selectedCommunities.any((communityId) {