From 32cdb3f9615d76006afc651724197aac6a47742b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 9 Jun 2022 20:33:44 +0200 Subject: [PATCH] fix: Do not error when moving document into alphabetically ordered collection closes #3649 --- app/components/Sidebar/components/CollectionLinkChildren.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Sidebar/components/CollectionLinkChildren.tsx b/app/components/Sidebar/components/CollectionLinkChildren.tsx index 4a1cad584..9357a1d6c 100644 --- a/app/components/Sidebar/components/CollectionLinkChildren.tsx +++ b/app/components/Sidebar/components/CollectionLinkChildren.tsx @@ -37,7 +37,7 @@ function CollectionLinkChildren({ const [{ isOverReorder, isDraggingAnyDocument }, dropToReorder] = useDrop({ accept: "document", drop: (item: DragObject) => { - if (!manualSort) { + if (!manualSort && item.collectionId === collection?.id) { showToast( t( "You can't reorder documents in an alphabetically sorted collection"