diff --git a/openslides/agenda/static/js/agenda/site.js b/openslides/agenda/static/js/agenda/site.js index ccd0cf285..ac14e1af3 100644 --- a/openslides/agenda/static/js/agenda/site.js +++ b/openslides/agenda/static/js/agenda/site.js @@ -41,10 +41,18 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda']) .state('agenda.item.detail', { resolve: { item: function(Agenda, $stateParams) { - return Agenda.find($stateParams.id); + return Agenda.find($stateParams.id).catch( + function () { + return null; + } + ); }, users: function(User) { - return User.findAll(); + return User.findAll().catch( + function () { + return null; + } + ); }, tags: function(Tag) { return Tag.findAll(); diff --git a/openslides/agenda/static/templates/agenda/item-detail.html b/openslides/agenda/static/templates/agenda/item-detail.html index 8ddbb16fc..cbc1c4753 100644 --- a/openslides/agenda/static/templates/agenda/item-detail.html +++ b/openslides/agenda/static/templates/agenda/item-detail.html @@ -1,4 +1,4 @@ -