fix bug where tasks were not sorted upon edit

This commit is contained in:
marlon-erler
2026-04-02 19:11:35 +00:00
parent b7373e909f
commit 37dcb81365
3 changed files with 6 additions and 7 deletions
+3 -3
View File
@@ -1744,8 +1744,8 @@
};
this.updateTaskIndices = () => {
this.taskIndexManager.update([...this.taskViewModels.value.values()]);
for (const boardViewModel of this.taskViewModels.value.values()) {
boardViewModel.updateIndex();
for (const taskViewModel of this.taskViewModels.value.values()) {
taskViewModel.updateIndex();
}
};
this.boardsAndTasksModel = boardsAndTasksModel;
@@ -1830,6 +1830,7 @@
this.taskViewModels.remove(taskFileContent.fileId);
this.taskViewModels.set(taskFileContent.fileId, taskViewModel);
mapState?.set(taskFileContent.fileId, taskViewModel);
this.updateTaskIndices();
};
this.removeTaskFromView = (taskFileContent) => {
this.taskViewModels.remove(taskFileContent.fileId);
@@ -1879,7 +1880,6 @@
if (taskFileContent == null) continue;
this.showTask(taskFileContent);
}
this.updateTaskIndices();
};
this.loadData = () => {
this.loadMonthTasks();