use objects.save in display layouts and new folder

This commit is contained in:
Deep Tailor 2020-09-15 09:29:37 -07:00
parent 9f6bfa2351
commit 09c4e610af
2 changed files with 3 additions and 2 deletions

View File

@ -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;
},

View File

@ -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);
});
}