From 35c8a73156414f15835bded948ceb8f8697656c2 Mon Sep 17 00:00:00 2001 From: Faris Armoush Date: Mon, 21 Jul 2025 16:24:11 +0300 Subject: [PATCH] Refactor SpaceManagementPage's initState to ensure HTTPService is initialized before use in CommunitiesBloc. --- .../main_module/views/space_management_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/space_management_v2/main_module/views/space_management_page.dart b/lib/pages/space_management_v2/main_module/views/space_management_page.dart index 5c226671..47a67c36 100644 --- a/lib/pages/space_management_v2/main_module/views/space_management_page.dart +++ b/lib/pages/space_management_v2/main_module/views/space_management_page.dart @@ -31,12 +31,12 @@ class _SpaceManagementPageState extends State { @override void initState() { + _httpService = HTTPService(); communitiesBloc = CommunitiesBloc( communitiesService: DebouncedCommunitiesService( RemoteCommunitiesService(_httpService), ), )..add(const LoadCommunities(LoadCommunitiesParam())); - _httpService = HTTPService(); super.initState(); }