diff --git a/src/module-elasticsuite-virtual-category/Model/VirtualCategory/Root.php b/src/module-elasticsuite-virtual-category/Model/VirtualCategory/Root.php index 513bfad40..8134fe2bf 100644 --- a/src/module-elasticsuite-virtual-category/Model/VirtualCategory/Root.php +++ b/src/module-elasticsuite-virtual-category/Model/VirtualCategory/Root.php @@ -76,6 +76,7 @@ public function __construct( */ public function setAppliedRootCategory(CategoryInterface $category) { + $this->coreRegistry->unregister('applied_virtual_root_category'); $this->coreRegistry->register('applied_virtual_root_category', $category); return $this;