mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 15:02:23 +00:00
fix: ensure MoveAction always saves transaction (#6196)
Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov>
This commit is contained in:
parent
8d1a2e6716
commit
d20c2a3e3c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user