Handle notifications without an eventId

This commit is contained in:
Johannes Zellner
2019-02-06 16:33:57 +01:00
parent 7ec12f487b
commit 640ee55772
2 changed files with 4 additions and 2 deletions

View File

@@ -69,6 +69,8 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
};
$scope.notificationExpanding = function (notification) {
if (!notification.eventId) return;
notification.busyLoadEvent = true;
Client.getEvent(notification.eventId, function (error, result) {