Re-implemented getting tasks with the new seperate endpoint #39
|
@ -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
|
||||
|
|
Reference in New Issue