We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92939fd commit 38801b8Copy full SHA for 38801b8
src/helpers/task.ts
@@ -318,6 +318,7 @@ export class Task {
318
319
async getTasksByCategoryPositionFromApi(position: number): Promise<task[]> {
320
if(!navigator.onLine) throw new Error("No internet connection");
321
+ if (position < 0) position = 0;
322
const taskCategory = this.tasksCategoryList.get()[position];
323
if (!taskCategory) throw new Error("Task category not found");
324
const url = `${this.baseUrl}/lists/${taskCategory.id}/tasks`;
0 commit comments