diff --git a/app/mutations/todo.ts b/app/mutations/todo.ts index 75b8efa..dae1a3a 100644 --- a/app/mutations/todo.ts +++ b/app/mutations/todo.ts @@ -77,7 +77,7 @@ export const useAddTodo = defineMutation({ queryCache.setQueryData(["todos", "active"], [...updatedTodos]); return { - uuid: v4(), + uuid: todo.uuid, position: insertionPoint.value, previousId: lastTodo?.uuid, };