diff --git a/src/plugins/displayLayout/components/DisplayLayout.vue b/src/plugins/displayLayout/components/DisplayLayout.vue index 509c50533d..4b96c74831 100644 --- a/src/plugins/displayLayout/components/DisplayLayout.vue +++ b/src/plugins/displayLayout/components/DisplayLayout.vue @@ -630,7 +630,7 @@ export default { object.identifier = identifier; object.location = parentKeyString; - this.openmct.objects.mutate(object, 'created', Date.now()); + this.openmct.objects.save(object); return object; }, diff --git a/src/plugins/newFolderAction/newFolderAction.js b/src/plugins/newFolderAction/newFolderAction.js index 6232ac5a5a..e2e3f4857f 100644 --- a/src/plugins/newFolderAction/newFolderAction.js +++ b/src/plugins/newFolderAction/newFolderAction.js @@ -72,7 +72,8 @@ export default class NewFolderAction { folderType.definition.initialize(objectModel); objectModel.name = name || 'New Folder'; - this._openmct.objects.mutate(objectModel, 'created', Date.now()); + this._openmct.objects.save(objectModel); + composition.add(objectModel); }); }