From 6fa8858d8791b4461a5d83f86d226c3c166d1841 Mon Sep 17 00:00:00 2001 From: Vaibhav Surve Date: Tue, 3 Jun 2025 11:05:21 +0530 Subject: [PATCH] fix: Update project selection logic to fetch task data instead of projects --- lib/view/taskPlaning/daily_progress.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/view/taskPlaning/daily_progress.dart b/lib/view/taskPlaning/daily_progress.dart index ba5cc4f..0c394d4 100644 --- a/lib/view/taskPlaning/daily_progress.dart +++ b/lib/view/taskPlaning/daily_progress.dart @@ -157,11 +157,7 @@ class _DailyProgressReportScreenState extends State if (selectedProjectId != null && selectedProjectId != dailyTaskController.selectedProjectId) { dailyTaskController.selectedProjectId = selectedProjectId; - try { - await dailyTaskController.fetchProjects(); - } catch (e) { - debugPrint('Error fetching projects: $e'); - } + await dailyTaskController.fetchTaskData(selectedProjectId); dailyTaskController.update(['daily_progress_report_controller']); } }