From 392be7cb44c20800171150d0bc3472ef0cf4c4cc Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 19 Nov 2018 16:45:00 +0100 Subject: [PATCH] Merge pull request #1165 from sharelatex/ja-fix-undefined-id-error Fixes an undefined _id error when looking for project owner for new project GitOrigin-RevId: 6ad5230380431b4a5866088911ce27175633dbbb --- services/web/public/src/main/project-list/project-list.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/public/src/main/project-list/project-list.js b/services/web/public/src/main/project-list/project-list.js index 58f1395627..5ba2ede256 100644 --- a/services/web/public/src/main/project-list/project-list.js +++ b/services/web/public/src/main/project-list/project-list.js @@ -393,7 +393,10 @@ define(['base'], function(App) { $scope.projects.push({ name, _id: data.project_id, - accessLevel: 'owner' + accessLevel: 'owner', + owner: { + _id: window.user_id + } // TODO: Check access level if correct after adding it in // to the rest of the app })