default to string not undefined

This commit is contained in:
David Tsay 2022-01-13 17:15:24 -08:00
parent f165d9c064
commit 5a44931537

View File

@ -66,7 +66,7 @@ export default class CreateAction extends PropertiesAction {
});
const parentDomainObject = parentDomainObjectPath[0];
const namespace = parentDomainObject.identifier.namespace || parentDomainObject.key;
const namespace = parentDomainObject.identifier.namespace || parentDomainObject.key || '';
this.domainObject.modified = Date.now();
this.domainObject.location = this.openmct.objects.makeKeyString(parentDomainObject.identifier);