mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Fix bug when tasks are appearing in reverse chronological order
This commit is contained in:
@@ -57,6 +57,8 @@ class TaskViewModel with ChangeNotifier {
|
||||
.where((task) => !_taskService.isTaskDeleted(task.id))
|
||||
.toList();
|
||||
|
||||
_tasks = _tasks.reversed.toList();
|
||||
|
||||
notifyListeners();
|
||||
print("Tasks fetched successfully!");
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user