from server 18.01

This commit is contained in:
root 2023-01-18 12:21:04 +05:00
parent 23e3662b11
commit 757fdb1a5f
1 changed files with 2 additions and 1 deletions

View File

@ -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){