mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 16:24:42 +00:00
Fix bug where announcements were undefined.
This commit is contained in:
parent
f993966935
commit
699ec419aa
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ define [
|
|||
refreshAnnouncements = ->
|
||||
$http.get("/announcements").then (response) ->
|
||||
$scope.announcements = response.data
|
||||
$scope.ui.newItems = _.filter(announcements, (announcement) -> !announcement.read).length
|
||||
$scope.ui.newItems = _.filter($scope.announcements, (announcement) -> !announcement.read).length
|
||||
|
||||
markAnnouncementsAsRead = ->
|
||||
event_tracking.sendMB "announcement-alert-dismissed", { blogPostId: $scope.announcements[0].id }
|
||||
|
|
Loading…
Reference in a new issue