fix(tasks): correct move route for challenge task reordering (#15660)

route challenge task moves to the user endpoint, not group-tasks
This commit is contained in:
Fiz
2026-06-04 11:20:36 -05:00
committed by GitHub
parent bca081d7be
commit e6eda1bdaa
2 changed files with 81 additions and 2 deletions
@@ -582,7 +582,7 @@ export default {
const newPosition = where === 'top' ? 0 : list.length;
list.splice(newPosition, 0, moved[0]);
if (!this.isUser) {
if (task.group.id && !this.isUser) {
await this.$store.dispatch('tasks:moveGroupTask', {
taskId: taskIdToMove,
position: newPosition,
@@ -592,7 +592,7 @@ export default {
taskId: taskIdToMove,
position: newPosition,
});
this.user.tasksOrder[`${this.type}s`] = newOrder;
if (!this.taskListOverride) this.user.tasksOrder[`${this.type}s`] = newOrder;
}
},
async rewardSorted (data) {