FIX: cope with unset notifications on the component

This commit is contained in:
Sam 2016-02-15 20:13:55 +11:00
parent dd6ebde824
commit e083fb44f4
1 changed files with 2 additions and 0 deletions

View File

@ -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;