From d20c2a3e3c126b22aeb7e5fbb9881aba4ead89a4 Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Thu, 26 Jan 2023 14:18:46 -0800 Subject: [PATCH] fix: ensure MoveAction always saves transaction (#6196) Co-authored-by: Jamie V --- src/plugins/move/MoveAction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/move/MoveAction.js b/src/plugins/move/MoveAction.js index d89713f28d..7f5ff264c3 100644 --- a/src/plugins/move/MoveAction.js +++ b/src/plugins/move/MoveAction.js @@ -84,6 +84,8 @@ export default class MoveAction { this.addToNewParent(this.object, parent); this.removeFromOldParent(this.object); + await this.saveTransaction(); + if (!inNavigationPath) { return; } @@ -102,8 +104,6 @@ export default class MoveAction { } } - await this.saveTransaction(); - this.navigateTo(newObjectPath); }