From 9ffec6eb16b0edad3796d3d778283b256a194102 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Mon, 26 Jun 2017 10:00:47 +0100 Subject: [PATCH] Correctly access response parameters. --- .../ide/history/controllers/HistoryDiffController.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/history/controllers/HistoryDiffController.coffee b/services/web/public/coffee/ide/history/controllers/HistoryDiffController.coffee index a38f36534f..544f262d75 100644 --- a/services/web/public/coffee/ide/history/controllers/HistoryDiffController.coffee +++ b/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