ACF: How to make get_field() ignore the main wp query?

I resolved this by adding wp_query->is_main_query() to my clauses before I set the query update. Ie…

// The filter code that shows only the current authors posts
add_action(‘pre_get_posts’, ‘query_set_only_author’);
function query_set_only_author( $wp_query ) {
    if( is_admin() && get_current_user_role()==”required_role” && $wp_query->is_main_query() ) {
        if ( basename($_SERVER[‘PHP_SELF’])==”edit.php”){
            $wp_query->set( ‘author’, $current_user->ID );
       }
    }