mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 00:23:01 +00:00
fix: ensure MoveAction always saves transaction (#6196)
Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov>
This commit is contained in:
@ -84,6 +84,8 @@ export default class MoveAction {
|
|||||||
this.addToNewParent(this.object, parent);
|
this.addToNewParent(this.object, parent);
|
||||||
this.removeFromOldParent(this.object);
|
this.removeFromOldParent(this.object);
|
||||||
|
|
||||||
|
await this.saveTransaction();
|
||||||
|
|
||||||
if (!inNavigationPath) {
|
if (!inNavigationPath) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -102,8 +104,6 @@ export default class MoveAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.saveTransaction();
|
|
||||||
|
|
||||||
this.navigateTo(newObjectPath);
|
this.navigateTo(newObjectPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user