Skip to content

Commit

Permalink
Fix for nullable category return
Browse files Browse the repository at this point in the history
  • Loading branch information
supercid committed Oct 14, 2024
1 parent efa0c27 commit b14cb86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/Service/Product/Category/DefaultCategoryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public function getCategory(Category $category, StoreInterface $store)
['categoryString' => $nostoCategory, 'magentoCategory' => $category]
);
}
return trim($nostoCategory);

return $nostoCategory ? trim($nostoCategory) : $nostoCategory;
}

/**
Expand Down

0 comments on commit b14cb86

Please sign in to comment.