WordPress: Modifying the main query broke widgets in the sidebar

I modified the home page main query of a WooCommerce site to only show products on change.

Site:
http://www.familyandchildrens.org/gift-catalog/

My update broke the menu widgets in the sidebar. Gifts By Price, Ways to Give, and Related Links don’t list the pages in the menu on the home page. It also breaks wp_nav_menu(), and prevents it from filtering links by menu name.
Does anyone know how to tweak the code below to protect the menus?

function modify_home_page_catalog($query){
	if(is_main_query() && is_front_page()) {
	
	$args=array(array(
            'taxonomy' => 'product_cat',
            'field' => 'slug',
            'terms' => '10-most-popular-gifts'
        ));
	$query->set( 'tax_query',  $args);
	
	}
}

add_action( 'pre_get_posts', 'modify_home_page_catalog' );

Thank you E