From db5408ad84c7d79a5ed455bff2e3d5e54ac52b9a Mon Sep 17 00:00:00 2001 From: slickvoodoo Date: Thu, 26 Apr 2018 09:59:01 -0500 Subject: [PATCH] Assign user response correctly Fix #529 --- web/public/js/controllers/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/public/js/controllers/users.js b/web/public/js/controllers/users.js index 0c8f1b9e..b1a7c767 100644 --- a/web/public/js/controllers/users.js +++ b/web/public/js/controllers/users.js @@ -1,7 +1,7 @@ define(function () { app.registerController('UsersCtrl', ['$scope', '$http', '$uibModal', '$rootScope', function ($scope, $http, $modal, $rootScope) { $http.get('/users').then(function (response) { - $scope.users = response.users; + $scope.users = response.data; }); $scope.addUser = function () {