Make sure portlet settings are there before checking them

This commit is contained in:
Nathan Gray 2015-08-05 21:15:38 +00:00
parent 5fabb70f38
commit 2c7814b39c

View File

@ -824,7 +824,7 @@ app.classes.home.home_link_portlet = app.classes.home.home_portlet.extend({
}, },
observer: function(_msg, _app, _id, _type) observer: function(_msg, _app, _id, _type)
{ {
if(this.portlet) if(this.portlet && this.portlet.settings)
{ {
var value = this.portlet.settings.entry || {}; var value = this.portlet.settings.entry || {};
if(value.app && value.app == _app && value.id && value.id == _id) if(value.app && value.app == _app && value.id && value.id == _id)