dont crash if item is undefined

v1.18.x
barisusakli 9 years ago
parent c93b2f7fbb
commit 74b02ee096

@ -10,8 +10,11 @@
var helpers = {};
helpers.displayMenuItem = function(data, index) {
var item = data.navigation[index],
properties = item.properties;
var item = data.navigation[index];
if (!item) {
return false;
}
var properties = item.properties;
if (properties) {
if ((properties.loggedIn && !data.config.loggedIn) ||

Loading…
Cancel
Save