From 4dc705c19330ab32efe41e29c349132255538e6d Mon Sep 17 00:00:00 2001 From: Irfan Omur Date: Tue, 27 Feb 2024 21:16:32 +0300 Subject: [PATCH] Fix showing wrong data for a short time on the traffic tab --- .../android/ui/stats/refresh/lists/StatsListViewModel.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/StatsListViewModel.kt b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/StatsListViewModel.kt index ff5abea0eebb..0fffba4c2101 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/StatsListViewModel.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/StatsListViewModel.kt @@ -247,7 +247,6 @@ class TrafficListViewModel @Inject constructor( BaseStatsUseCase.UseCaseMode.BLOCK ) } - statsUseCase.onCleared() statsUseCase = statsUseCase.clone(newUseCases) // Create new BaseListUseCase with updated useCases launch { statsUseCase.loadData()