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))
|
.where((task) => !_taskService.isTaskDeleted(task.id))
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
|
_tasks = _tasks.reversed.toList();
|
||||||
|
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
print("Tasks fetched successfully!");
|
print("Tasks fetched successfully!");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user