From e083fb44f47a62b09c9222c8ac099f1378d4d86a Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 15 Feb 2016 20:13:55 +1100 Subject: [PATCH] FIX: cope with unset notifications on the component --- .../javascripts/discourse/components/notification-item.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/components/notification-item.js.es6 b/app/assets/javascripts/discourse/components/notification-item.js.es6 index f900c1b2744..844bf83edf9 100644 --- a/app/assets/javascripts/discourse/components/notification-item.js.es6 +++ b/app/assets/javascripts/discourse/components/notification-item.js.es6 @@ -71,6 +71,8 @@ export default Ember.Component.extend({ render(buffer) { const notification = this.get('notification'); + // since we are reusing views now sometimes this can be unset + if (!notification) { return; } const description = this.get('description'); const username = notification.get('data.display_username'); var text;