mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +00:00
The Object API should propagate out fresh model to any observers when .get() is called #4305 (#4325)
This commit is contained in:
parent
4c9c084eec
commit
ea8c9c7cc8
@ -182,6 +182,12 @@ ObjectAPI.prototype.get = function (identifier, abortSignal) {
|
||||
let objectPromise = provider.get(identifier, abortSignal).then(result => {
|
||||
delete this.cache[keystring];
|
||||
result = this.applyGetInterceptors(identifier, result);
|
||||
if (result.isMutable) {
|
||||
result.$refresh(result);
|
||||
} else {
|
||||
let mutableDomainObject = this._toMutable(result);
|
||||
mutableDomainObject.$refresh(result);
|
||||
}
|
||||
|
||||
return result;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user