mirror of
https://github.com/nasa/openmct.git
synced 2025-06-23 01:18:57 +00:00
[Persistence] Report space by identifier
This commit is contained in:
@ -130,6 +130,10 @@ define(
|
|||||||
* be used to persist this object
|
* be used to persist this object
|
||||||
*/
|
*/
|
||||||
PersistenceCapability.prototype.getSpace = function () {
|
PersistenceCapability.prototype.getSpace = function () {
|
||||||
|
if (this.domainObject.getId().indexOf(":") !== -1) {
|
||||||
|
return this.domainObject.getId().split(":")[0];
|
||||||
|
}
|
||||||
|
|
||||||
return this.space;
|
return this.space;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user