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
This commit is contained in:
James Allen 2018-11-19 16:45:00 +01:00 committed by sharelatex
parent 0f1c732d15
commit 392be7cb44

View file

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