Fixed setDocToLastOrder not working with new ordering design

This commit is contained in:
Thaum Rystra
2020-05-18 20:09:21 +02:00
parent 397ff82c43
commit 7592332637

View File

@@ -29,7 +29,7 @@ export function getHighestOrder({collection, ancestorId}){
export function setDocToLastOrder({collection, doc}){
doc.order = getHighestOrder({
collection,
parentId: doc.parent.id,
ancestorId: doc.ancestors[0].id,
}) + 1;
}