mirror of
https://github.com/nasa/openmct.git
synced 2025-05-11 13:03:03 +00:00
[Persistence] Provide model with error
Provide new version of domain objects correctly when revision errors are encountered, WTD-1033.
This commit is contained in:
parent
9eeb68ddd0
commit
ad3bb355dd
@ -70,8 +70,8 @@ define(
|
|||||||
if ((response || {}).status === CONFLICT) {
|
if ((response || {}).status === CONFLICT) {
|
||||||
error.key = "revision";
|
error.key = "revision";
|
||||||
// Load the updated model, then reject the promise
|
// Load the updated model, then reject the promise
|
||||||
return get(key).then(function (model) {
|
return get(key).then(function (response) {
|
||||||
error.model = model;
|
error.model = response[SRC];
|
||||||
return $q.reject(error);
|
return $q.reject(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user