mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01: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