mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 22:17:49 +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 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 newStyleRootObj = rootObj.useCapability('adapter');
|
||||
|
||||
@ -106,7 +110,10 @@ define(['zepto', '../../../../src/api/objects/object-utils.js'], function ($, ob
|
||||
if (!tree[keystring] || seen.includes(keystring)) {
|
||||
return;
|
||||
}
|
||||
newObj = this.instantiate(tree[keystring], keystring);
|
||||
let newModel = tree[keystring];
|
||||
delete newModel.persisted;
|
||||
|
||||
newObj = this.instantiate(newModel, keystring);
|
||||
newObj.getCapability("location")
|
||||
.setPrimaryLocation(tree[keystring].location);
|
||||
this.deepInstantiate(newObj, tree, seen);
|
||||
|
Loading…
Reference in New Issue
Block a user