fix: Do not error when moving document into alphabetically ordered collection

closes #3649
This commit is contained in:
Tom Moor
2022-06-09 20:33:44 +02:00
parent d99d84d97d
commit 32cdb3f961

View File

@@ -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"