from server 18.01
This commit is contained in:
parent
23e3662b11
commit
757fdb1a5f
|
|
@ -30,8 +30,9 @@ function onStart(){
|
|||
$catId = $this['featuredPosts'][0]->categories[0]->id;
|
||||
//dd($this['featuredPosts'][0]->categories[0]->slug);
|
||||
|
||||
if($this->menuItems && $postId && $currentPost && $currentPost->category_groups){
|
||||
if($this->menuItems && $postId && $currentPost && $currentPost->category_groups->count() > 0){
|
||||
|
||||
|
||||
$currentGroup = $currentPost->category_groups[0]->name;
|
||||
|
||||
foreach ($this->menuItems as $menu){
|
||||
|
|
|
|||
Loading…
Reference in New Issue