set namespace for malformed identifiers

This commit is contained in:
David Tsay 2022-01-13 17:06:24 -08:00
parent 830f321f90
commit 613973d936

View File

@ -66,10 +66,11 @@ export default class CreateAction extends PropertiesAction {
});
const parentDomainObject = parentDomainObjectPath[0];
const namespace = parentDomainObject.identifier.namespace || parentDomainObject.key;
this.domainObject.modified = Date.now();
this.domainObject.location = this.openmct.objects.makeKeyString(parentDomainObject.identifier);
this.domainObject.identifier.namespace = parentDomainObject.identifier.namespace;
this.domainObject.identifier.namespace = namespace;
// Show saving progress dialog
let dialog = this.openmct.overlays.progressDialog({