mirror of
https://github.com/nasa/openmct.git
synced 2025-01-03 03:46:42 +00:00
Delete persisted timestamp (#2506)
This commit is contained in:
parent
45164a2f68
commit
69b6f8afa9
@ -64,7 +64,11 @@ define(['zepto', '../../../../src/api/objects/object-utils.js'], function ($, ob
|
|||||||
|
|
||||||
var tree = this.generateNewIdentifiers(objTree, namespace);
|
var tree = this.generateNewIdentifiers(objTree, namespace);
|
||||||
var rootId = tree.rootId;
|
var rootId = tree.rootId;
|
||||||
var rootObj = this.instantiate(tree.openmct[rootId], rootId);
|
|
||||||
|
var rootModel = tree.openmct[rootId];
|
||||||
|
delete rootModel.persisted;
|
||||||
|
|
||||||
|
var rootObj = this.instantiate(rootModel, rootId);
|
||||||
var newStyleParent = parent.useCapability('adapter');
|
var newStyleParent = parent.useCapability('adapter');
|
||||||
var newStyleRootObj = rootObj.useCapability('adapter');
|
var newStyleRootObj = rootObj.useCapability('adapter');
|
||||||
|
|
||||||
@ -106,7 +110,10 @@ define(['zepto', '../../../../src/api/objects/object-utils.js'], function ($, ob
|
|||||||
if (!tree[keystring] || seen.includes(keystring)) {
|
if (!tree[keystring] || seen.includes(keystring)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
newObj = this.instantiate(tree[keystring], keystring);
|
let newModel = tree[keystring];
|
||||||
|
delete newModel.persisted;
|
||||||
|
|
||||||
|
newObj = this.instantiate(newModel, keystring);
|
||||||
newObj.getCapability("location")
|
newObj.getCapability("location")
|
||||||
.setPrimaryLocation(tree[keystring].location);
|
.setPrimaryLocation(tree[keystring].location);
|
||||||
this.deepInstantiate(newObj, tree, seen);
|
this.deepInstantiate(newObj, tree, seen);
|
||||||
|
Loading…
Reference in New Issue
Block a user