remove async

This commit is contained in:
Saumya Pandey committed 2022-02-12 10:21:23 +05:30
1 parent a773516e01
commit c143036374
1 file changed
+3 -3
@@ -75,7 +75,7 @@ function CollectionLink({
// Drop to re-parent document
const [{ isOver, canDrop }, drop] = useDrop({
accept: "document",
drop: async (item: DragObject, monitor) => {
drop: (item: DragObject, monitor) => {
const { id, collectionId } = item;
if (monitor.didDrop()) {
@@ -117,7 +117,7 @@ function CollectionLink({
// Drop to reorder document
const [{ isOverReorder }, dropToReorder] = useDrop({
accept: "document",
drop: async (item: DragObject) => {
drop: (item: DragObject) => {
if (!collection) {
return;
}
@@ -135,7 +135,7 @@ function CollectionLink({
dropToReorderCollection,
] = useDrop({
accept: "collection",
drop: async (item: DragObject) => {
drop: (item: DragObject) => {
collections.move(
item.id,
fractionalIndex(collection.index, belowCollectionIndex)