Fix new task order + fix notes order.

This commit is contained in:
John Livingston
2024-07-30 16:04:12 +02:00
parent fbc9a39485
commit 1c749f68bc
4 changed files with 14 additions and 5 deletions

View File

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