Retrieve a post with its ACF repeater fields in wordpress

<?php    
 $the_query = new WP_Query(array(
    'post_type'      => 'our-partners',
    'posts_per_page' => 1,
    'order'          => 'DESC'
    )); 
if ( $the_query->have_posts() ) :
    while ( $the_query->have_posts() ) : 
        $the_query->the_post();
        if( have_rows('slider_partenaires_hp') ): //"slider_partenaires_hp" is the repeater field
            // loop through the rows of data
            while ( have_rows('slider_partenaires_hp') ) : the_row();
                // display a sub field value
                echo "<li class="partenaire-slide"><img src="" . get_sub_field("logo_partner') . "'></li>"; //"logo_partner" is the item inside the repeater field
            endwhile;
        else :
            // no rows found
        endif;
    endwhile; 
endif;
wp_reset_postdata();
?>

This has to work