mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-24 20:22:27 +00:00
Refactor SpaceManagementPage's initState to ensure HTTPService is initialized before use in CommunitiesBloc.
This commit is contained in:
@ -31,12 +31,12 @@ class _SpaceManagementPageState extends State<SpaceManagementPage> {
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
_httpService = HTTPService();
|
||||
communitiesBloc = CommunitiesBloc(
|
||||
communitiesService: DebouncedCommunitiesService(
|
||||
RemoteCommunitiesService(_httpService),
|
||||
),
|
||||
)..add(const LoadCommunities(LoadCommunitiesParam()));
|
||||
_httpService = HTTPService();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user