Re-implemented getting tasks with the new seperate endpoint #39

Open
konrad wants to merge 34 commits from feature/task-list into master
1 changed files with 4 additions and 2 deletions
Showing only changes of commit a34daacf23 - Show all commits

View File

@ -68,8 +68,10 @@ class _ListPageState extends State<ListPage> {
index == _tasks.length - 1) return null;
if (index >= _tasks.length &&
VikunjaGlobal.of(context).taskService.maxPages <
_currentPage) {
_currentPage <
VikunjaGlobal.of(context)
.taskService
.maxPages) {
_currentPage++;
// FIXME: This does not get loaded until some time after the next (_tasks.length + 1) entry should have been rendered
// This leads to errors because the render method tries to access an entry of _tasks with an index which does not exist