Merge pull request #3870 from overleaf/ae-project-tokens

Fix applying new link sharing tokens to scoped project data in React Share modal

GitOrigin-RevId: 8234e836b5d7301896b877748461911180c81a72
This commit is contained in:
Miguel Serrano 2021-03-31 17:46:23 +02:00 committed by Copybot
parent 973e6f31d7
commit a0393e14af

View file

@ -35,8 +35,9 @@ export default App.controller('ReactShareProjectModalController', function(
ide.socket.on('project:tokens:changed', data => {
if (data.tokens != null) {
ide.$scope.project.tokens = data.tokens
$scope.$digest()
$scope.$applyAsync(() => {
$scope.project.tokens = data.tokens
})
}
})