diff --git a/facetwp-p2p.php b/facetwp-p2p.php index 04a2bb5..7d87535 100644 --- a/facetwp-p2p.php +++ b/facetwp-p2p.php @@ -370,7 +370,7 @@ public function p2p_created_connection( $p2p_id ) { } if ( 'to' === $direction && count( $facets ) > 0 ) { - FWP()->indexer->index( $connexion->p2p_from ); + FWP()->indexer->index( $connexion->p2p_to ); } }