Task lists WIP:

* drag and drop fixes
This commit is contained in:
John Livingston
2024-05-09 14:42:07 +02:00
parent 7e56c845fe
commit fffcc05b7f
5 changed files with 102 additions and 39 deletions

View File

@ -36,7 +36,7 @@ class ChatRoomTaskList extends Model {
data.list = this.get('id')
if (!data.order) {
data.order = 1 + Math.max(
data.order = 0 + Math.max(
0,
...(this.getTasks().map(t => t.get('order') ?? 0).filter(o => !isNaN(o)))
)