This commit is contained in:
Tom Moor
2021-03-22 22:23:03 -07:00
parent 059fca27b3
commit 8d8bde4b8b
2 changed files with 21 additions and 4 deletions

View File

@ -45,9 +45,9 @@ export default async function documentMover({
const [
documentJson,
fromIndex,
] = await collection.removeDocumentInStructure(document, {
] = (await collection.removeDocumentInStructure(document, {
save: false,
});
})) || [undefined, index];
// if we're reordering from within the same parent
// the original and destination collection are the same,