fix order of pasted notes when doing multi-select operations

This commit is contained in:
azivner
2018-01-19 18:34:21 -05:00
parent fcd11c341c
commit f42835e083
2 changed files with 10 additions and 12 deletions

View File

@@ -15,6 +15,8 @@ const treeChanges = (function() {
}
async function moveAfterNode(nodesToMove, afterNode) {
nodesToMove.reverse(); // need to reverse to keep the note order
for (const nodeToMove of nodesToMove) {
const resp = await server.put('tree/' + nodeToMove.data.note_tree_id + '/move-after/' + afterNode.data.note_tree_id);