mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 17:31:40 +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 => {
|
let objectPromise = provider.get(identifier, abortSignal).then(result => {
|
||||||
delete this.cache[keystring];
|
delete this.cache[keystring];
|
||||||
result = this.applyGetInterceptors(identifier, result);
|
result = this.applyGetInterceptors(identifier, result);
|
||||||
|
if (result.isMutable) {
|
||||||
|
result.$refresh(result);
|
||||||
|
} else {
|
||||||
|
let mutableDomainObject = this._toMutable(result);
|
||||||
|
mutableDomainObject.$refresh(result);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user