refactor: add client log on task list change

This commit is contained in:
Jordan Knott
2021-10-25 21:03:22 -05:00
parent cf63783174
commit ef2aadefbb
7 changed files with 63 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import List, { ListCards } from 'shared/components/List';
import Card from 'shared/components/Card';
import CardComposer from 'shared/components/CardComposer';
import AddList from 'shared/components/AddList';
import log from 'loglevel';
import {
isPositionChanged,
getSortedDraggables,
@@ -262,6 +263,9 @@ const SimpleLists: React.FC<SimpleProps> = ({
id: destination.droppableId,
},
};
log.debug(
`action=move taskId=${droppedTask.id} source=${source.droppableId} dest=${destination.droppableId} oldPos=${droppedTask.position} newPos=${newPosition}`,
);
onTaskDrop(newTask, droppedTask.taskGroup.id);
}
}