Correctly access response parameters.

This commit is contained in:
Paulo Reis 2017-06-26 10:00:47 +01:00
parent 33be384206
commit 9ffec6eb16

View file

@ -10,7 +10,8 @@ define [
$scope.history.diff.doc
)
.then (response) ->
$scope.history.diff.restoredDocNewId = response.doc_id
{ data } = response
$scope.history.diff.restoredDocNewId = data.doc_id
$scope.history.diff.restoreInProgress = false
$scope.history.diff.restoreDeletedSuccess = true