FIX: Allow forceActive without a customHref

This commit is contained in:
Daniel Waterworth 2019-11-13 12:17:57 +00:00
parent 60e804ad5c
commit 58b5d1434b
1 changed files with 3 additions and 3 deletions

View File

@ -187,9 +187,9 @@ NavItem.reopenClass({
items.push(item);
}
if (!item.customHref) return;
item.set("href", item.customHref(category, args));
if (item.customHref) {
item.set("href", item.customHref(category, args));
}
if (item.forceActive && item.forceActive(category, args)) {
item.active = true;