mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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) {
|
render(buffer) {
|
||||||
const notification = this.get('notification');
|
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 description = this.get('description');
|
||||||
const username = notification.get('data.display_username');
|
const username = notification.get('data.display_username');
|
||||||
var text;
|
var text;
|
||||||
|
Loading…
Reference in New Issue
Block a user