فهرست منبع

Correctly access response parameters.

Paulo Reis 9 سال پیش
والد
کامیت
9ffec6eb16
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      services/web/public/coffee/ide/history/controllers/HistoryDiffController.coffee

+ 2 - 1
services/web/public/coffee/ide/history/controllers/HistoryDiffController.coffee

@@ -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