Просмотр исходного кода

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
James Allen 8 лет назад
Родитель
Сommit
392be7cb44
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      services/web/public/src/main/project-list/project-list.js

+ 4 - 1
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
           })