mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +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) {
|
||||
error.key = "revision";
|
||||
// Load the updated model, then reject the promise
|
||||
return get(key).then(function (model) {
|
||||
error.model = model;
|
||||
return get(key).then(function (response) {
|
||||
error.model = response[SRC];
|
||||
return $q.reject(error);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user