mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
1.7.4 into master (#3985)
catching any errors from a user canceling from dialog (#3968) Fix navigation errors (#3970) Only add listeners to observables on creation Do not double destroy mutable objects Disallow pause and play in time strip view for plots. (#3972) Update version Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov> Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
@ -37,7 +37,15 @@ export default class DuplicateAction {
|
||||
let duplicationTask = new DuplicateTask(this.openmct);
|
||||
let originalObject = objectPath[0];
|
||||
let parent = objectPath[1];
|
||||
let userInput = await this.getUserInput(originalObject, parent);
|
||||
let userInput;
|
||||
|
||||
try {
|
||||
userInput = await this.getUserInput(originalObject, parent);
|
||||
} catch (error) {
|
||||
// user most likely canceled
|
||||
return;
|
||||
}
|
||||
|
||||
let newParent = userInput.location;
|
||||
let inNavigationPath = this.inNavigationPath(originalObject);
|
||||
|
||||
|
Reference in New Issue
Block a user