mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 08:31:47 +08:00
FIX: cope with unset notifications on the component
This commit is contained in:
parent
dd6ebde824
commit
e083fb44f4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user