mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +03:00
remove async
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user